Quantcast
Channel: Answers for "Sprite layer order determined by Y value"
Browsing latest articles
Browse All 5 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 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 latest articles
Browse All 5 View Live


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