I followed the 2.5D tutorial with my test scene, but when it comes to put the mask sprites on the scene I did it all fine an all, following instructions on the video.
The thing is that when I hit PLAY the Sprite Renderer component gets "unticked" like deactivated and the sprites mask disappear. If I turn them on again "during play" they work fine. but as soon as I stop the game and play it again it happens all over again.
Why is this happening? Does the sprite masks have to be sorted in a special layer or something or this is a bug?
Thanks.
Comments
At which point in the video are you referring to, and which sprite mask are you working with?
The sprite masks have a LimitVisibility component attached to them, because generally you'll only want them to be shown when a particular camera is active. Make sure that you have the right GameCamera assigned in the component's Limit To Camera field, or remove the component if you want to show it at all times.
Otherwise, please post screenshots of the object in question so we can try to help further.
The same thing happened to me, and I followed your advice and it worked thanks. but now I also fear that in a different camera the sprite may appear
@Doncha If it does, post details of the issue and we can look into it.
I have like 300 sprites, and now I don't remember which one it was. But basically it was the same problem as Diego, it was not shown to me by camera, but when I deactivated limit visility, it worked correctly.a hug!