Hi guy.
Does unity javascript support c++ structures and classes. How to define global variables and/or structures/classes. I was looking for a usefull way to store data in an encapsulated form. And better yet to have some global data to be common for use by multiple game objects. Javascript.
They are supported, see my post above. I’d like to know about that type cast operator though; can’t find anything about that, as it doesn’t seem to be covered on the update page.
I don’t know that I’d call extending ValueType “support” for struct, I read that as being syntactically supported. But that’s just quibbling I do wonder if they use some funky syntax like the generic support where you need the extra dot (i.e. list., ugh I hate that)