Runtime Artboard Instantiation into Layouts
Right now, the number of components in a Rive layout has to be defined upfront in the editor. If I want a dynamic list, say an inventory with a variable number of slots, I have to pre-build the maximum number of slots and hide the unused ones, or abandon Rive’s layout system entirely and manage everything in Unity.
The feature request is simple: let the host application add and remove component instances into a layout at runtime.
Something like:
var layout = artboard.Layout("InventoryGrid");
var slot = layout.InstantiateChild("SlotComponent");
slot.BindViewModelInstance(myData);
// and when done
layout.RemoveChild(slot);
The ViewModel and layout reflow systems already exist. The missing piece is just making the child list mutable from outside Rive.
This would unlock the most common dynamic UI pattern, variable-length lists of components driven by runtime data, which currently isn’t possible without pushing layout responsibility back into the host engine and losing all the benefits of Rive’s layout system.