- Home /
List Set in Editor no longer contains Items after Transplant to new Level (pooler = singleton)
Hi Guys, I have A self written Object Pooler That has a List of a custome datatype containing all spawnable Items
     [System.Serializable]
     public class PooledObject
     {
         public string tag;
         public GameObject prefab;
         public int size;
     }
     public List<PooledObject> PooledObjectsList;
wich I filled with spawnables in the editor
and I made the pooler A Singleton (don't know if that has something to do with it)
     public static ObjectPooler Instance;
     private void Awake ()
     {
         Instance = this;
     }
and I have a spawner that calls this List to spwn some items from it. This all works fine in the Level in wich I have set it up. But then I made my whole setup a prefab, wich didn't break it in the Level it was set up in, but as soon as i put it in the scene in wich i want to use it in it behaves as if the list is empty even though I can see it filled from the editor. (List.count shows 0) What have I done wrong ?
Your answer
 
 
             Follow this Question
Related Questions
Return List from Singleton 1 Answer
Access List from singleton database script 0 Answers
Multiple Cars not working 1 Answer
How do I make child classes in a list editable from the Inspector? 1 Answer
Distribute terrain in zones 3 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                