Thread
N
8d ago
Appending Component in Runtime
Hi, I’m currently exploring Rive to see if it’s a viable option for our game UI engine.
Is it possible to dynamically add a component to a layout at runtime?
From my review of the JavaScript API, it doesn’t seem like this is supported.
2 replies
N
7d ago
You've got a couple of options.
Use the low-level JS api which allows you to instantiate multiple artboards at runtime. It's a little tricker to use than the JS api because you need to manage the render cycle, but it's very powerful.
We have a new feature called data binding that'll allow you to instantiate new artboards at runtime using the high level JS api. I don't have a specific date yet, but it's coming soon.
N
Author
7d ago
Thank you for your reply!
We will be looking forward for the new data binding feature.
Lance