I am trying to change scale of an object via script. I looked up documentation of spark ar but cannot find an example of how to manipulate scale property of an object via script. I tried something on my code but it did not work.
const [object] = await Promise.all([
Scene.root.findFirst('object')
]);
const somethingHappened= await Patches.outputs.getBoolean('event');
if(somethingHappened){
object.Transform.scale.toSignal(0,0); //I have no idea about this line just made up
}