Hi,
If I start a scene, my player is affected by the tint map correctly, but when playing the game, the tint map sometimes stays from the scene before, and seems to ADD to the previous tint map and therefore darkens my player too much. This hangover from previous scenes can also affect my sorting layer of my player, where he can sometimes be smaller than he should be, as if he has carried through the previous sorting layer rather than the sorting layer of the scene?
Any reason this is happening or an easy remedy to stop this happening?
Thanks
Comments
The only way I can see TintMaps being compounded is if a) you have a hierarchy of FollowTintMaps causing a sprite to be affected by more than one at a time, or b) you are changing tint-maps mid-scene. Does your TintMap have a Constant ID number on it?
Have you tried just having a FollowTintMap on just the sprite object? I can't say if you should, but it's worth a try of course.
You wrote of switching players across scenes - this is what I'm referring to about the prefabs. Please detail exactly how you're managing players across your game scenes.
This'll likely be the cause of the main issue, too. However, scanning over your animations doesn't reveal a change in the colour properties. It could be that this is actually an issue with Unity itself, though the problem doesn't occur with the 2D Demo player character.