system
1
Is there a way to declare an enum-variable carrying float-variables? This site says the variables are constant integers by default: JavaScript Enum.
So my question is: Can I make something like this?
enum axesvar {x, y, z};
axesvar.x = 10.3;
axesvar.y = 5.1;
axesvar.z = 5.2;
The variables of course shall not become constants.
system
2
Even though the command struct exists in JavaScript, it doesn’t work with Unity-Javascript!
A possible workaround is here.
Therefore I dis-marked the other answer as correct.
Furthermore, the workaround doesn’t seem to be clean and is still causing me trouble. New threat is here: How to use struct-variables as return-values of functions