Skip to content

spawn 1

eisclimber edited this page Apr 4, 2026 · 1 revision

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.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally