Skip to main content
J
5mo ago

RivexUnity 2D animation (help needed)

hey guys I really can't get my 2d button animation to respond to my clicking in Unity (Renderd on a 2d UI image using material with a default 2d shader). I tried this code https://github.com/rive-app/rive-unity-examples/blob/main/getting-started/Assets/Rive/RiveTexture.cs#L100 but it didn't work for me. is there anyone willing to guide this lost soul a bit through this process?

thanks in advance

1 reply
B
B
5mo ago

Sadly this doesn't work in Rive. There are some clues here to get it to work:
https://github.com/rive-app/rive-unity/issues/11

Once you get it to work, you will run into other issues such as the animation being the same at every instance, so if you click one button, all button instances will fire the click animation.

Bug report here:
https://github.com/rive-app/rive-unity/issues/78