Hi,
i’m quite new with unity and ran into a problem with multidimensional .net arrays (unityscript).
var myArray : byte[,];
myArray = new byte[5,5];
myArray[0,0]=1;
myArray[1,0]=1;
...
I get the compiler error ArgumentException: not a widening conversion
Can someone explain to me, whats wrong here?
UPDATE:
the problem only seems to occur when using byte as variabletype. Int, String and double work fine and compile without an error.