Soooo… I’m super new to unityscript so I’m sorry if this sounds like a dumb question (and sorry for my english as well, I’m a spanish-native speaker actually :/).
Anyway, I run into this weird problem: I was practicing a little of arrays with this extremely simple code which works perfectly:
var miarray = new int[2];
function Start () {
miarray[0]=1544444414;
miarray[1]=1244444412;
Debug.Log("array[] 0 = " + miarray[0]);
Debug.Log("array[] 1 = " + miarray[1]);
}
However, if I ever decide to add a single character to any of these two variables, Unity crashes! … this is the code:
var miarray = new int[2];
function Start () {
miarray[0]=15444444141; //11 characters for unity to crash!
miarray[1]=1244444412;
Debug.Log("array[] 0 = " + miarray[0]);
Debug.Log("array[] 1 = " + miarray[1]);
}
Unity shuts down by itself and I get a “Unity Bug Reporter” window. So uhm… is this normal? (I’m using the free version of Unity for now by the way). Thanks in advance!