Author Topic: Animated UI2DSprite with AnimationController and Animation  (Read 1728 times)


  • Jr. Member
  • **
  • Thank You
  • -Given: 8
  • -Receive: 7
  • Posts: 70
    • View Profile
Congratulations! This new version looks amazing! And the integration with the native sprite is a awesome news!

Right now, I'm trying to use a UI2DSprite animated using AnimationController and Native animation, but not looks like possible, I write a mirror class to set the UI2DSprite the same value as Sprite Renderer too, but don't work ether, do you have any idea if that wold be accomplished?


  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Animated UI2DSprite with AnimationController and Animation
« Reply #1 on: May 20, 2014, 04:25:37 PM »
Unfortunately Unity itself doesn't understand 2D sprite types in the animation view.

NGUI's 2D sprite exposes the "next sprite" field on the UI2DSprite, but even that isn't showing up. The issue lies on Unity's side. Their own 2D sprites have special handling for this in the animation window, and this doesn't work for user scripts.

Try using the UI2DSpriteAnimation as the starting point.