returninstance - eisclimber/ExPresS-XR GitHub Wiki
Method in ObjectPool
Returns an instance to the pool, deactivating it and updating it's parent if provided.
public void ReturnInstance(GameObject go, Transform setParent = null)| Name | Description |
|---|---|
UnityEngine.GameObject go |
GameObject to return. |
UnityEngine.Transform setParent |
Optional parent if it should be changed. |