Exemple #1
0
        public override void Update()
        {
            if (!this.IsActive)
            {
                return;
            }

            if (Target.IsNullOrDestroyed(false))
            {
                InspectorManager.ReleaseInspector(this);
                return;
            }

            GOControls.UpdateVectorSlider();
            GOControls.UpdateTransformControlValues(false);

            // Slow update
            if (timeOfLastUpdate.OccuredEarlierThan(1))
            {
                timeOfLastUpdate = Time.realtimeSinceStartup;

                GOControls.UpdateGameObjectInfo(false, false);

                TransformTree.RefreshData(true, false, false, false);
                UpdateComponents();
            }
        }
        private void OnComponentClicked(int index)
        {
            var entries = GetEntries();

            if (index < 0 || index >= entries.Count)
            {
                return;
            }

            var comp = entries[index];

            if (comp)
            {
                InspectorManager.Inspect(comp);
            }
        }
Exemple #3
0
 public override void CloseInspector()
 {
     InspectorManager.ReleaseInspector(this);
 }
Exemple #4
0
 public InspectorManager()
 {
     Instance = this;
     ConstructInspectorPane();
 }
 private void OnTabButtonClicked()
 {
     InspectorManager.SetInspectorActive(this);
 }