Table of Contents

Class PrefabPooledObject

Namespace
TAssetBundle.Extensions
Assembly
TAssetBundle.Extensions.dll

This class represents an object that is pooled within a PrefabPool.

[AddComponentMenu("")]
[DisallowMultipleComponent]
public class PrefabPooledObject : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
PrefabPooledObject
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Extension Methods

Properties

Pool

The pool that this object belongs to.

public PrefabPool Pool { get; }

Property Value

PrefabPool

Methods

Free()

Frees this object back into its pool or destroys it if no pool is assigned.

public void Free()

SetPool(PrefabPool)

Sets the pool this object belongs to.

public void SetPool(PrefabPool pool)

Parameters

pool PrefabPool

The pool to set for this object.