Show / Hide Table of Contents

Class PoolableObject

When attached to an object, this object can now be used in a ObjectPool

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
PoolableObject
Namespace: WeaverCore
Assembly: WeaverCore.dll
Syntax
public sealed class PoolableObject : MonoBehaviour

Properties

| Edit this page View Source

InPool

Is the object currently in a pool?

Declaration
public bool InPool { get; }
Property Value
Type Description
bool
| Edit this page View Source

SourcePool

The pool the object was instantiated from

Declaration
public ObjectPool SourcePool { get; }
Property Value
Type Description
ObjectPool
| Edit this page View Source

transform

Declaration
public Transform transform { get; }
Property Value
Type Description
Transform

Methods

| Edit this page View Source

ReturnToPool()

Returns the object to the pool is came from

Declaration
public void ReturnToPool()
| Edit this page View Source

ReturnToPool(float)

Returns the object to the pool it came from

Declaration
public void ReturnToPool(float time)
Parameters
Type Name Description
float time

A time delay before it's returned to the pool

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾