We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a771c commit 7be51b2Copy full SHA for 7be51b2
README.md
@@ -19,7 +19,6 @@ public class Spawner : MonoBehaviour
19
20
private void Awake()
21
{
22
- // Use this only with Prefabs
23
_prefab.Populate(count: 50);
24
}
25
@@ -40,10 +39,9 @@ public class Spawner : MonoBehaviour
40
39
41
public void Spawn()
42
43
44
_prefab.Spawn(transform.position, transform.rotation);
45
46
+ // Get object from pool with component
47
_prefab.Spawn<Rigidbody>(transform.position, transform.rotation).isKinematic = true;
48
49
@@ -61,7 +59,6 @@ public class Spawner : MonoBehaviour
61
59
62
60
63
64
65
var instance = _prefab.Spawn(transform.position, transform.rotation);
66
67
// Use this only with Instances of Prefab
0 commit comments