// Update

        public override void Update()
        {
            base.Update();

            if (m_pendingDestroy || !this.IsActive)
            {
                return;
            }

            RefreshTopInfo();

            s_childList.RefreshChildObjectList();

            s_compList.RefreshComponentList();

            s_controls.RefreshControls();

            if (GameObjectControls.s_sliderChangedWanted)
            {
                GameObjectControls.UpdateSliderControl();
            }
        }
        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();
            }
        }
예제 #3
0
 public GameObjectControls()
 {
     Instance = this;
 }