Hi!
I need to slice an array.
I need the array to expand depending on the amount of objects that I have in the scene. This is for saving data by the way.
I have:
public var SceneData : DemoData = new DemoData[4];
That works, but I need the 4 declared when going through the objects in my scene later.
public var SceneData : DemoData[];
// seperately
SceneData = new DemoData[4];
Causes an error.
BCE0048: Type ‘System.Type’ does not support slicing.
How can I do this without using :
public var new = new Array()