Skip to content

ScriptablePool Class

Base class for all ScriptablePool<T>.

C#
[HelpURL("https://hertzole.github.io/scriptable-values/types/scriptable-pool")]
public abstract class ScriptablePool : RuntimeScriptableObject, INotifyPropertyChanging, INotifyPropertyChanged, IStackTraceProvider

Inheritance object → UnityEngine.Object → UnityEngine.ScriptableObject → RuntimeScriptableObject

Implements INotifyPropertyChanging, INotifyPropertyChanged, IStackTraceProvider

You should probably inherit from ScriptablePool<T> instead.

C#
public static readonly PropertyChangingEventArgs countAllChangingEventArgs
C#
public static readonly PropertyChangedEventArgs countAllChangedEventArgs
C#
public static readonly PropertyChangingEventArgs countActiveChangingEventArgs
C#
public static readonly PropertyChangedEventArgs countActiveChangedEventArgs
C#
public static readonly PropertyChangingEventArgs countInactiveChangingEventArgs
C#
public static readonly PropertyChangedEventArgs countInactiveChangedEventArgs

How many total objects that the pool is keeping track of.

C#
[CreateProperty]
public abstract int CountAll { get; protected set; }

How many objects that are currently active.

C#
[CreateProperty]
public abstract int CountActive { get; protected set; }

How many objects that are currently inactive.

C#
[CreateProperty]
public abstract int CountInactive { get; protected set; }