void RemoveComponent()
        {
            m_Container.RemoveComponent <T>();
            if (m_Container.HasComponent <T>())
            {
                m_Element?.SetTarget(m_Container.GetComponent <T>());
                SetBorderColor();
            }
            else
            {
                RemoveFromHierarchy();
            }

            OnChanged();
        }
Exemplo n.º 2
0
 void ElementOnOnChanged(PropertyElement element, PropertyPath path)
 {
     m_Container.SetComponent(element.GetTarget <T>());
     element.SetTarget(m_Container.GetComponent <T>());
     SetStyle();
 }