Hello, all. A few questions about events that will run a script.
a. So events like “pointerdown” are pretty clear. But is there any documentations about when these events fire:
i. Ready/Notready – how does the system determine readiness/notreadiness? When do these fire?
ii. Seen/NotSeen – seems pretty straightforward, but do these fire every time an object is not within camera view? Does it fire when the object is invisible?
b. Running scripts from other scripts?
If I make a blank script, how can I call it from other scripts? That would seem to be the only reason to have a blank script, right?
c. .on method - multiple ones in one script
Recently, I wanted to start and end an action from the same script but using different buttons.
Can I put two items with the .on method into one script? When I try this, it does not even remotely work.
parent.on(“pointerdown”, (e) => {
starttheaction();
});
otherbutton.on(“pointdown”,(e)=> {
stoptheaction();
});