I have many arrays of Vector3’s that represent many shapes, each shape is an arrays of dots:
class Dots
{
var name : String;
var dotarray: Vector3[];
}
var shape : Dots[];
shape =new Dots[10];//10 shapes
for (var j:int = 0; j < 10; j ++){
shape[j]=new Vector3[20];//20 dots per shape... this line crashes
}
BCE0022: Cannot convert ‘UnityEngine.Vector3’ to ‘Dots’.
then i am supposed to access it in this way:
var a_dot = shapej[shapeNumber].dotarray[dotNumber]