Author Topic: Can i Change Sprite Depth in the Animation Panel?  (Read 2273 times)

realblues

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Can i Change Sprite Depth in the Animation Panel?
« on: September 04, 2012, 03:14:23 AM »
Sometimes my Ui needs Change Depth while Animation.

but it's not visible UISprite.Depth variable in the Animation Panel. (it for designer)

is it possible?

thx.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Can i Change Sprite Depth in the Animation Panel?
« Reply #1 on: September 04, 2012, 03:47:44 AM »
You have to create an intermediate script for this. Something simple that has a public int value exposed, and inside its Update it adjusts the sprite's depth.