using UnityEngine; using UnityEngine.UIElements; using UnityEngine.VFX; namespace UnityEditor.VFX.UI { class VFXAttachPanel : EditorWindow { TextField m_pickedObjectLabel; Button m_AttachButton; VisualElement m_VFXIcon; VFXView m_VFXView; public Vector2 WindowSize { get; } = new Vector2(250, 50); public void SetView(VFXView view) { m_VFXView = view; } protected void CreateGUI() { rootVisualElement.styleSheets.Add(VFXView.LoadStyleSheet("VFXAttachPanel")); var tpl = VFXView.LoadUXML("VFXAttachPanel"); var mainContainer = tpl.CloneTree(); m_AttachButton = mainContainer.Q