Is it possible to change the object the inspector is looking at without the project window also changing location?
There is a specific asset I want the inspector to look at. When I do this:
Selection.activeObject = theAsset;
It changes the project window location which is not what I want. The project window always jumps to the object I want selected. Can I stop that behavior somehow?
Hi @VoodooDetective ,
Iām not sure if this will help you to achieve what you want, but something that you can definitely do is to lock your current inspector window in order to not change, whatever you select by code or directly inside of the project window.
You can do it by using the lock icon on the top bar of your inspector window.
Here you can find more information about it: Unity - Manual: Working in the Inspector
I hope it helps!
1 Like
Thanks so much for the suggestion. I think in my case it may not solve the problem, but it sounds like the solution is to make sure the a specific window is in focus before changing the selection.
1 Like