Hi there
I hope this is a small question. I have a multidimensional array that I declared as followed:
var things : Transform[,] = new Transform[10,20];
The array gets partially filled by Transforms. In the script I check, if a certain position is of the array is filled like this:
if(things[5,8]){
//Do stuff
}
This works like a charm so far. But now I need to make the same position “empty” again. For a “normal” array I found this:[http://docs.unity3d.com/Documentation/ScriptReference/Array.RemoveAt.html][1]
[1]: http://docs.unity3d.com/Documentation/ScriptReference/Array.RemoveAt.html
Is there a way to do the same with my array? Kinda like:
things[5,8].delete
When I destroy the gameObject of the Transform, the array is still filled.
Thanks for your help
mitti2000