I’m making a level editor and when an option is on in my EditorWindow script, I can select multiple gameobjects and add them to a collection.
I want to be able to select just the gameobjects in a particular layer, so when this option is on the other layers should be locked, but I’m unable to find any way to access layer properties from code.
Is it possible to do change layer’s lock and visibility from my script? Is there some clever way to do that?
Thanks!