Hello, is there a array type like the arrays in php?
for those who dont know:
0 = stone, 1 = tree, 2 = water
thanks in advance
Hello, is there a array type like the arrays in php?
for those who dont know:
0 = stone, 1 = tree, 2 = water
thanks in advance
like a index and a value for each item in the array (and still needs to be unlimited therefore not string[ ] and predefine-able index)
If you use Javascript, the Array class: http://unity3d.com/support/documentation/ScriptReference/Array.html
More advanced .NET array types can be used with any Unity language (including Javascript):
http://msdn.microsoft.com/en-us/library/6tc79sx1(VS.80).aspx
Sounds like maybe you want to use a hashtable.
–Eric
okay, thanks, ill look into it ![]()
used hashtables, works like a charm, thanks ![]()