I need help with a few things with Amazon Sumerian:
- How can I access an entity's attribute in a script?
- How can I access a variable from another script?
This is the code I tried to access an entity's variable that I set in the state machine but it returns undefined.
function setup(args, ctx) {
ctx.runButton = ctx.world.by.name('RunButton').first();
console.log(ctx.runButton.getAttribute('isReset'));
}