Custom ViewModel values ignored in Unity runtime
## Summary
When instantiating a component artboard with a custom ViewModel (`instance(vm)`), property values set on the ViewModel (e.g. `scale`) are correctly applied in the Rive Editor preview but are ignored in the Unity runtime. The component does not renders.
## Environment
- Rive Editor BETA 0.8.4359: works
- Unity (Rive plugin v0.4.1-canary.113): does not work
- Same .riv file, same script
## Steps to reproduce
1. Create a component artboard with a ViewModel (e.g. `RectComponentVM`) that has a number property `scale` (default 100).
2. Create a main artboard with a Node Script that:
- Accepts the component as input
- Creates a fresh ViewModel via `Data.RectComponentVM.new()`
- Sets `scale` to 400 via `vm:getNumber("scale").value = 400`
- Instantiates the component with `rectComponent:instance(vm)`
3. Run in Rive Editor: the rectangle renders with scale 400.
4. Run in Unity: the rectangle does not renders, script is in error.
## Minimal repro script
```lua
type MainNode = {
rectComponent: Input<Artboard>,
componentInstance: Artboard?,
}
function init(self: MainNode, context: Context): boolean
local vm = Data.RectComponentVM.new()
local scaleProp = vm:getNumber('scale')
if scaleProp then
scaleProp.value = 400
end
self.componentInstance = self.rectComponent:instance(vm)
return true
end
function advance(self: MainNode, seconds: number): boolean
if self.componentInstance then
self.componentInstance:advance(seconds)
end
return true
end
function draw(self: MainNode, renderer: Renderer)
if self.componentInstance then
self.componentInstance:draw(renderer)
end
end
return function(): Node<MainNode>
return {
rectComponent = late(),
componentInstance = nil,
init = init,
advance = advance,
draw = draw,
}
end
```
## Project files
script-instance-scale.revscript-instance-scale.riv