Example #1
0
        protected override void InitializeInternal()
        {
            if (element == null)
            {
                element = CreateElement();
                element.SetParent(this);

                element.AddAttachments(GetAttachments());
            }

            element.Initialize();
        }
Example #2
0
        protected override void InitializeInternal()
        {
            if (NeedRecreation())
            {
                element = Recreate();
                if (element != null)
                {
                    element.SetParent(this);
                    element.AddAttachments(GetAttachments());
                }
            }

            element.IfNotNull(e => e.Initialize());
        }
Example #3
0
 public void AddAttachments(IEnumerable <EditorGUIElementAttachment> to_add)
 {
     element.AddAttachments(to_add);
 }