Author Topic: Sprites moving behind other objects in z (nested panels)  (Read 2215 times)

laurentl

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 188
    • View Profile
    • McDROID
Sprites moving behind other objects in z (nested panels)
« on: May 08, 2013, 02:54:56 AM »
I want to order textures. I use panels for that.

It works well except that panels order get mixed up when one panel rotates behind another.

https://www.youtube.com/watch?v=L0Q4mKoGnbg

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites moving behind other objects in z (nested panels)
« Reply #1 on: May 08, 2013, 06:23:28 PM »
That's how Unity works. It sorts objects based on distance from the camera to the center of the drawn object. Instead of rotating, consider scaling instead (shrinking X).