createInstanceFromIndex

Create a new ViewModelInstance. Use Artboard::setViewModel to apply it.

Useful when the Rive file has a set of default property values that you want to initialize with.

Return

A new instance of the ViewModel with initial values supplied by the indexed instance.

Parameters

index

Rive file 0-based index for this instance.

Throws

If the instance is not found.