class prefabs["prefabName"] : IDictionary<string, Transform>
Returns a Transform.
Description
Fast access to the prefab references cached in the spawn pool.
This is handy when you know the name of a prefab but don't have a reference. There is no measurable overhead to using this. Transform cubePrefab = PoolManager.Pools["Shapes"].prefabs["Cube"];
Transform cubeinstance = PoolManager.Pools["Shapes"].Spawn(cubePrefab); Debug.Log("Spawned: " + cubeinstance.name); |
Code Reference > SpawnPool >