GameObject Array

Hello, I’m trying to make a predefined array of GUITexture. However i cant seem to make one of (fore example) 5 big. I’ve tried the following code:

var cubes : GUITexture[] = 5;

Because it cant convert int to gameObject. Some help would be really nice! :slight_smile:

var cubes : GUITexture[] = new GUITexter[5];

ah ofcourse! Thank you! :slight_smile: