spawn 1 - eisclimber/ExPresS-XR GitHub Wiki

ObjectPoolManager.Spawn(GameObject,Vector3,Quaternion)

Method in ObjectPoolManager

Summary

Spawns (create new or return unused) a new pooled instance at a position with a rotation. Will use the PoolContainer property of the manager as parent for the new instance.

public GameObject Spawn(GameObject toSpawn, Vector3 spawnPosition, Quaternion spawnRotation);

Parameters

Name Description
UnityEngine.GameObject toSpawn Prefab to spawn.
UnityEngine.Vector3 spawnPosition Position to spawn the object at.
UnityEngine.Quaternion spawnRotation Rotation to spawn the object with.

Returns

Spawned pooled instance.

⚠️ **GitHub.com Fallback** ⚠️