Ejemplo n.º 1
0
        // 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();
            }
        }
Ejemplo n.º 2
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();
            }
        }
 public GameObjectControls()
 {
     Instance = this;
 }