Quantcast
Channel: Answers for "Sprite layer order determined by Y value"
Browsing all 5 articles
Browse latest View live

Answer by axi0n

I ended up placing a function the following code in my update method: GetComponent().sortingOrder = Mathf.RoundToInt(transform.position.y * 100f) * -1;

View Article


Answer by CarterG81

Since this was one of the major results when googling a similar problem, I figure I'd link to my solution based on this answer....

View Article


Answer by axi0n

I ended up placing a function the following code in my update method: GetComponent().sortingOrder = Mathf.RoundToInt(transform.position.y * 100f) * -1;

View Article

Answer by CarterG81

Since this was one of the major results when googling a similar problem, I figure I'd link to my solution based on this answer....

View Article

Answer by Muskar

An old question, but now the answer is either to pivot all your sprites to the bottom and then do the global **Edit ** -> **Project Settings** -> **Graphics** -> Transparency Sort Mode: Custom...

View Article

Browsing all 5 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>