Пример #1
0
        protected override void ClearElements()
        {
            base.ClearElements();

            if (customEditor != null)
            {
                customEditor.Cleanup();
                customEditor = null;
            }
        }
Пример #2
0
        protected override void GenerateElements()
        {
            if (Value.IsNull())
            {
                initializeObjectButton.gameObject.SetActive(CanInitializeNewObject());
                return;
            }

            initializeObjectButton.gameObject.SetActive(false);

            if ((customEditor = RuntimeInspectorUtils.GetCustomEditor(Value.GetType())) != null)
            {
                customEditor.GenerateElements(this);
            }
            else
            {
                CreateDrawersForVariables();
            }
        }