Accessing a Components View Model from the React runtime
I have a `.riv` file with a component in it from a library. The component uses a `ViewModel` to bind to the State Machine to run animations. I am then changing the VM property in my React code but it isn’t changing state. I need to find a way to target the child VM from the parent:
const viewModelInstance = riveInstance.defaultArtboard.viewModelInstance;
const childVMInstance = viewModelInstance.viewModelInstance("DashboardsViewModel");
childVMInstance.number("levelState").value = 1;How can I debug to see if this VM exists. It isn’t throwing any errors, but I need to confirm the child VM is actually there.