IFactorable
Interface for objects that can be managed by a factory.
Definition
Namespace: Paragon.Core.ScriptableFactory
Assembly: Paragon.dll
public interface IFactorableProperties
IsSpawned
Whether the object is currently active/spawned.
bool IsSpawned { get; }Lifecycle Methods
OnInstantiate()
Called when the object is first created by the factory.
void OnInstantiate(IScriptableFactory factory);OnSpawn()
Called when the object is taken from the pool.
OnDespawn()
Called when the object is returned to the pool.
OnDestroy()
Called when the object is permanently destroyed.
Control Methods
Despawn()
Returns this object to the pool.
Destroy()
Permanently destroys this object.
See Also
Last updated
Was this helpful?