I really need your help. I migrated to Unity 6. I use 2D and 3D and URP, before Unity 6 :
- When moving to the front of a sprite, a trigger put the player behind it physically, so the sprites was upfront him, he was hided by the sprite.
- When leaving the trigger, he’s at the start position, so he’s no in front of the sprite
After Unity 6 I noticed that moving physically the player don’t work anymore, the only way to put him in front, is to change the Order in Layer to negative, but the sprite will always be behind the player, even if he’s physically behind that sprite.
Do you have any idea about what happened??
Here’s what I need to replicate! Thanks!
We can see there that even if the frog is in front physically, the sprite are taking on top of it…
If you are using Sprite-Lit material for the sprite try changing the Zwrite property of sprite to 0
Unfortunately, nothing changed… The only thing that helped me is putting the Sprite Renderer texture Unlit making things work like before? But I really need lit…
Something seems that have changed in the newest version of Unity 6 compared to the first one.
I know that on Unity 6000.0.0f1 everything worked fine and now on 6000.0.42f1
Sprite-Lit default shader seems to have changed something, I don’t know exactly where it could come from exactly. But I’m able to do layering with 3D meshes when I have a Sprite-Unlit and not Sprite-Lit… But I really need to work with lights, otherwise that would be a feature regression..
Any idea on what changed recently to the Sprite-Lit ?