Does anyone know how to change an object’s variable via javascript?
I have an object with a variable id.
but I need to change it via javascript! I tried this:
var obj_1 = runtimeScene.createObject (varGlobal.get (“card_1”). getAsString ());
obj_1.setZOrder (100);
obj_1.setScale (0.49);
// Part of the object variable I want to change.
obj_1.Variables () .get (‘id’). setNumber (001);