Пример #1
0
        public override void AddChild(EditorGUIElement child)
        {
            if (child != null)
            {
                elements.Add(child);

                Invalidate();
                child.SetParent(this);
            }
        }
Пример #2
0
        protected override void InitializeInternal()
        {
            if (element == null)
            {
                element = CreateElement();
                element.SetParent(this);

                element.AddAttachments(GetAttachments());
            }

            element.Initialize();
        }
Пример #3
0
        protected override void InitializeInternal()
        {
            if (NeedRecreation())
            {
                element = Recreate();
                if (element != null)
                {
                    element.SetParent(this);
                    element.AddAttachments(GetAttachments());
                }
            }

            element.IfNotNull(e => e.Initialize());
        }
Пример #4
0
 public void SetParent(EditorGUIElement p)
 {
     element.SetParent(p);
 }