Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

The best overload for the method 'System.Array.Clear(System.Array, int, int)' is not compatible with the argument list '()'.

$
0
0
I've been trying to figure out what I did wrong, and I thinks it's something obvious, but I just can't figure out what. Here is the code with the error:


#pragma strict

var nearObjects : Collider[];
nearObjects = new Array();

function Update () {
	
    nearObjects.Clear();
}


Viewing all articles
Browse latest Browse all 7934

Trending Articles