Closed tursiITT closed 2 months ago
In the Rive editor, you can bubble up events from the nested artboard. In the parent artboard, listen to the event from the nested artboard, and then have that trigger an event on the top-level artboard, so you can subscribe to it in Unity.
Hello,
I would like to track the start and end moments of animations to disable all buttons while they are running. The problem is that the animations are located within nested artboards.
My first question is whether there is a way to do this directly within the Rive app. It seems that it is not possible to link an event from the main artboard to the start and end of an animation within a nested artboard.
If it's not possible in Rive, can this be done in Unity?
Below is the code I developed. I know it's not written perfectly; some parts could have been structured better, but the logic should be correct. However, it only captures events on the main artboard. Did I do something wrong? Is there a workaround?