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

            OnChanged();
        }
Пример #2
0
 void ElementOnOnChanged(PropertyElement element, PropertyPath path)
 {
     m_Container.SetComponent(element.GetTarget <T>());
     element.SetTarget(m_Container.GetComponent <T>());
     SetStyle();
 }