Hello,
The issue:
I cannot find a non-hacky way to disable the effect of a sprite mask in the scene editor.
I have a sprite mask that covers a relatively large amount of space, masking numerous objects.
There are very many objects inside of the mask that are set to be only visible inside the mask. It works just fine in the game view… Technically it works in the scene view. It just needs a fixed for development. Here’s why:
The issue is that editing these objects inside the scene view is a tremendous pain, thanks to the fact that they are only visible if I am looking in the scene through the viewport of the mask… That’s extremely limiting when dealing with complex scenes with lots of objects and layers. Yes, in some situations, it may be a useful feature for a mask to be “in effect” in the scene view… It could help with visualization… But for my situations, with it being a medium-sized mask that covers very many objects that need to be adjusted just-so, it’s very annoying to have to edit in the scene view, but look in the game view, or adjust the camera in the scene view so that it is mushed right into the mask so I can see through it… Which is of course, limiting also.
I can’t just delete or mark the sprite mask component as invisible, because it will make all of those objects that are affected by the mask as invisible too. I can’t just unmark the objects as being affected by the sprite mask because there are too many. What I want to do is to be able to tell the scene view: “Hey, please just pretend masks don’t exist for a sec, so I can see what I am doing here”. I once saw a YouTube video of a tutorial that seemed to show this functionality in the past, but I suppose it is not available anymore, or else I cannot find it.
The workaround:
Fortunately, there is a workaround. It’s not perfect by any means, but I can get it to behave better by making an additional giant mask that covers a massive span in the editor, just for development purposes… Covering all mask layers. If I mark that mask as not-selectable, it lets me still be able to use the editor.