Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Array bug or script error

$
0
0
Hello, Yeah array script are famous on unity answer, but this is wierd for sure, here's the begining of my script:
var Gauche:boolean[];
var Numero:int;
function Start () {
	Numero=0;
	print(Gauche[Numero]);
	if(Gauche[Numero]==true){
		//Do things
	}
	else {
		//Do other things
	}
}
In unity editor, Gauche[] contains allready 4 elements, and here's what i got: ![alt text][1] So it means that the print is done but there are still an eoor. I checked the line of the error and of the printt, they're been created all since the same line. And the rest of the script is executed normaly So, bug or script error? ^^ [1]: /storage/temp/85274-capture.png

Viewing all articles
Browse latest Browse all 1875

Trending Articles