is it possible to have a static variable declared inside a function in JS? not the Unity static but the c++ static, the ones that maintain their value between function calls… That would help readability a lot
UnityScript has no static variable mechanism.
But to maintain values between function calls you don’t need it, just make it a private variable of the class itself (each js file is a class with that files name in reality)
i understand, thank you!