- Home /
 
               Question by 
               Oninji · Nov 30, 2010 at 07:10 PM · 
                javascriptprefabarray  
              
 
              Resizeable gameObject array.
Hello,
Can I get an array to appear in the inspector and to be resizeable?
I need an array of (X) number of gameObjects which would be assigned from prefabs depending on the scene. So I'd need the size of the array to be manipulated through the inspector for each level.
Thank You.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Mike 3 · Nov 30, 2010 at 07:43 PM
Yup, just make a public built in array
js:
var prefabs : GameObject[];
c#:
public GameObject[] prefabs;
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                