Game Development Reference
In-Depth Information
Character literals not supported
Unity's JavaScript seems to be missing the syntax to declare character literals. This means
you need to get them implicitly by referencing a character index from a string as follows:
// JavaScript user:
var myChar = "a"[0]; //implicitly retrieves the first
character of the string "a"
// C# user:
char myChar = 'a'; //character 'a'
Search WWH ::




Custom Search