Hi
I’ve declared array like this in C#
public float[ ] LastCreationTime= new float[5];
but when i go to start() and check the length of array it says the array length is zero!
print (LastCreationTime.Length);
i’m not sure if i missed something but i think this code is ok and maybe monodevelop has some settings that resets data or something like that?!
EDIT:
because the variable is public the size property of array is set in unity environment to 0 by default and when i changed the size value inside the unity to 5 the problem fixed, but still this question remains:
How can i define and set the size inside the script? or is it possible?