public BaseDrawer()
 {
     if (prefs == null)
         prefs = BetterPrefs.GetEditorInstance();
     if (foldouts == null)
         foldouts = new Foldouts();
 }
Exemple #2
0
        private void OnEnable()
        {
            if (prefs == null)
                prefs = BetterPrefs.GetEditorInstance();

            if (foldouts == null)
                foldouts = new Foldouts(prefs);

            var component = target as Component;
            gameObject = component == null ? null : component.gameObject;

            targetType = target.GetType();

            id = RuntimeHelper.GetTargetID(target);

            Initialize();

            var rabbit = gui as RabbitGUI;
            if (rabbit != null && _membersDrawnByUnityLayout.Length > 0)
                rabbit.OnFinishedLayoutReserve = DoUnityLayout;

            gui.OnEnable();
        }