using UnityEditor.Experimental.GraphView; using UnityEngine; using UnityEngine.Profiling; using UnityEngine.UIElements; namespace UnityEditor.VFX.UI { class VFXBlackboardField : VFXBlackboardFieldBase, IControlledElement { private readonly Label m_TypeLabel; private readonly Pill m_Pill; public VFXBlackboardRow owner { get; set; } public VFXBlackboardField(PropertyItem propertyItem) : base($"prop:{propertyItem.title}") { this.AddStyleSheetPath(Blackboard.StyleSheetPath); PropertyItem = propertyItem; RegisterCallback(OnMouseHover); RegisterCallback(OnMouseHover); RegisterCallback(OnMouseHover); RegisterCallback(OnDetachFromPanel); RegisterCallback(OnMouseDown); capabilities |= Capabilities.Deletable; m_Pill = new Pill(); Add(m_Pill); m_Label = m_Pill.Q