KybernetikGames / animancer

Documentation for the Animancer Unity Plugin.
65 stars 8 forks source link

Generate UIImage sprite animation #283

Closed andriworld closed 3 weeks ago

andriworld commented 1 year ago

Hi there, I would have liked to use "Generate Sprite Animations" tool to generate my Unity UI sprite animations. However the generated animation only animates sprites in the SpriteRenderer component and not sprites in the UIImage component.

The animation would likely require a different property binding:

SpriteRenderer sprite animation image image

UIImage sprite animation image image

I tried remapping using the "Remap Animation Bindings Tool" but no source bindings appeared.

[This is just a nice to have. I only have few animations and I have created them manually]

KybernetikGames commented 1 year ago

Should be easy enough to add a field to choose the component you want the generated/remapped animation to apply to. I'll look into it for the next version of Animancer.

andriworld commented 1 year ago

Awesome! Thank you

KybernetikGames commented 1 year ago

If you want to hard code it, just open the GenerateSpriteAnimationsTool script and change the SpriteRenderer to UnityEngine.UI.Image (it's only referenced once in the script).

andriworld commented 1 year ago

That worked! 😊 Thank you so much

KybernetikGames commented 2 months ago

Animancer v8.0 is now available for Alpha Testing.

The Generate Sprite Animations tool has been improved a lot and it now has settings fields where you can change the component and field it's targeting.

KybernetikGames commented 3 weeks ago

Animancer v8.0 is now fully released.