Thanks a lot guys, I get it. It seems that it's no good to use lists here indeed. Too bad because I was pretty relaxed at the idea of being able to add and remove elements while not having to worry about array dimensions.
Is there a way to re-dimension an array of objetcs without losing all the data inside those objects? I'm basically trying to make a 2D editor where you can build objects from many sprites. So basically I wanted an object to be a list of sprites instead of being an array of sprites.
As I'd really like to have virtually no limit to the amount of sprites used, a way to redimension this array would be welcome. I don't see how I can do it with slices...
Thanks a lot once again.
Is there a way to re-dimension an array of objetcs without losing all the data inside those objects? I'm basically trying to make a 2D editor where you can build objects from many sprites. So basically I wanted an object to be a list of sprites instead of being an array of sprites.
As I'd really like to have virtually no limit to the amount of sprites used, a way to redimension this array would be welcome. I don't see how I can do it with slices...
Thanks a lot once again.