spawn 2 - eisclimber/ExPresS-XR GitHub Wiki

ObjectPoolManager.Spawn(GameObject,Vector3,Quaternion,Transform)

Method in ObjectPoolManager

Summary

Spawns (create new or return unused) a new pooled instance at a position with a rotation.

public GameObject Spawn(GameObject toSpawn, Vector3 spawnPosition, Quaternion spawnRotation, Transform attachParent)

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.
UnityEngine.Transform attachParent Transform to be set as parent for the object.

Returns

Spawned pooled instance.

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