Increasing And Decreasing An Array Through A Variable

Hello, Im Trying To Make A Variable That Will Hold How Big An Array Is, I’d Like To Do This So That Way I Can Simply Increase And Decrease The Size Of The Array In the Inspector.

How Should I Go About Doing This?

This isn’t possible with native arrays. An array ( < Type > ) capacity is declared only once, when creating a new array.

You should be able to explicitly declare how large your array is in the Inspector at any time, though, given the array is of a serializable type.

Have you tried using an array that looks like this

var array : float[];