|
Hi, everyone. I am attempting to make a mass component adder, but when I input the number of gameobjects and press update, it doesn't make the object fields. I know why, the array is at a length of zero, so how do I resize it? If necessary, here is my code so far. Any help would be appreciated =]
(comments are locked)
|
|
resizing an array? You'd have to make a new one then. They have a fixed value. Here's quote from a wiki post on the exception:
And you don't want to use the unsafe keyword unless you know ABSOLUTELY sure what you are doing and why (just like meddling with matrices internal library references and quaternions). So basically , are you sure you want to do it that way? Consider other options!
(comments are locked)
|
