for example I have got
ScirptA.isRotating = false;
now I want to use “isRotating” in ScriptB,
i coundn’t find any about this in doc.
for example I have got
ScirptA.isRotating = false;
now I want to use “isRotating” in ScriptB,
i coundn’t find any about this in doc.
entityThatHoldsTheScript.script.nameOfScript.isRotating
Eg. Line 19 here: https://playcanvas.com/editor/code/438515?tabs=6861154
Also, let’s say scriptA is held by entityA, which is a different entity than the one holding scriptB (entityB).
In this case, you can access scriptA from scriptB by passing entityA as a script attribute in scriptB.