public GameObjectControls(GameObjectInspector parent)
        {
            this.Parent = parent;

            ConstructTopInfo();
            ConstructTransformControls();
        }
        public void Inspect(object obj, CacheObjectBase parentMember = null)
        {
            obj = ReflectionProvider.Instance.Cast(obj, ReflectionProvider.Instance.GetActualType(obj));

            UnityEngine.Object unityObj = obj as UnityEngine.Object;

            if (obj.IsNullOrDestroyed(false))
            {
                return;
            }

            // check if currently inspecting this object
            foreach (InspectorBase tab in m_currentInspectors)
            {
                if (RuntimeProvider.Instance.IsReferenceEqual(obj, tab.Target))
                {
                    SetInspectorTab(tab);
                    return;
                }
            }

            InspectorBase inspector;

            if (obj is GameObject go)
            {
                inspector = new GameObjectInspector(go);
            }
            else
            {
                inspector = new InstanceInspector(obj);
            }

            if (inspector is ReflectionInspector ri)
            {
                ri.ParentMember = parentMember;
            }

            m_currentInspectors.Add(inspector);
            SetInspectorTab(inspector);
        }