- Home /
Layering issue with sprites
Oh boy, the sprite that I imported seems to work! Let's just try walking behind it and-
Oh.
Okay, so question: How do I make it so that the player's position relative to the sign makes sense, for lack of a less confusing phrase? The game I'm making uses 2D sprites in a 3D environment, so layering objects that all interact with one another makes things a little tricky.
Answer by cdr9042 · Mar 09, 2019 at 02:22 AM
Two solutions:
Make the transform position have the same Z as its Y (or scale together), and use orthographic camera
Make a script that update the sprite's sorting layer using transform's Y value.
Your answer
Follow this Question
Related Questions
Sequence of Sprite Rendering in Unity? 1 Answer
Layer Sprites Based on Y axis 1 Answer
Can't see button over sprite. 1 Answer
Sprites is jaggy on low move speed 0 Answers
How to set sprite size in pixels? 2 Answers