Пример #1
0
        public GameObjectInspector(GameObject target) : base(target)
        {
            ActiveInstance = this;

            TargetGO = target;

            if (!TargetGO)
            {
                ExplorerCore.LogWarning("Target GameObject is null!");
                return;
            }

            // one UI is used for all gameobject inspectors. no point recreating it.
            if (!m_UIConstructed)
            {
                m_UIConstructed = true;

                s_childList = new ChildList();
                s_compList  = new ComponentList();
                s_controls  = new GameObjectControls();

                ConstructUI();
            }
        }
Пример #2
0
 public override void SetInactive()
 {
     base.SetInactive();
     ActiveInstance = null;
 }
Пример #3
0
 public override void SetActive()
 {
     base.SetActive();
     ActiveInstance = this;
 }