2D Toolkit Forum
2D Toolkit => Support => Topic started by: aninocoders on June 03, 2013, 09:51:51 am
-
We have an overlay sprite that we fade-in/fade-out whenever we change levels. This is just a simple interpolation of the alpha color and set it unto the sprite. This overlay is implemented as a non destroyable object that persists. What happens is that somehow a combined mesh ("Combined Mesh (root:scene)") is assigned to the MeshFilter of the sprite when the next level is loaded. So whatever color assigned to it no longer changes the color of the sprite.
I don't want this happening. How do I prevent it? It happens automatically.
-
Found it. I unticked "Static". This feature may be useful but I think it's better if you use a different flag for it other than the built in "Static" flag.
-
A different flag than what? Sorry I don't think I follow - 2D Toolkit doesn't use the Unity static flag in any way.
-
Somehow it stopped generating the combined mesh when static is unticked.
-
That sounds very much like Unitys static merging. Probably a good idea not to tick static unless your sprite is truly static. If you're changing colors, its not static.