Hi, and thanks for taking the time to read my thread.
I’m trying to keep an object selected in the hierarchy. Its an empty game object, with children that are 2d planes. Whenever I click on the scene, it selected one of the children, and loses focus of the parent object.
I’d like to keep the parent object selected in the hierarchy, no matter where I click on the scene.
I don’t know if it’s what you want, but if you click the little padlock in the top right corner of the inspector, it keeps the selected object’s properties visible, even if you change the actual selection.
So you actually want one object to remain the active selection? Via editor scripting?
In a previous project I’ve achieved this with
Selection.activeGameObject = someObject;
every loop of OnSceneGUI.
Then you just need some way to assign someObject, and enable/disable this functionality, I use an editor window, like this