Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Unityscript - static classes. (Now available?)

$
0
0
Say you have a text file "textfile.js". You include it in your Unity project (but do not attach to a game object.) In the file you have this: static class handy { function findArea(...):blah { blah } function makeCoffee(...):blah { blah } function guessName(...):blah { blah } } I feel very confused: I could swear, **it was not possible to have static classes in Unityscript** ... ?? Has this changed recently, or ? Thanks, experts !! PS if I'm not mistaken it remains a intriguing factoid that Unityscript is totally undocumented. So if anyone "knows" this (presumably from eg. talking to friends at Unity .. or whatever) again thanks.

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>