World.SubscribeComponentEnabled_T_(ComponentEnabledHandler_T_).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.World
World.SubscribeComponentEnabled(ComponentEnabledHandler) Method
Subscribes a ComponentEnabledHandler<T>(Entity, T) on the current World to be called when a component of type T is enabled.
public System.IDisposable SubscribeComponentEnabled<T>(DefaultEcs.ComponentEnabledHandler<T> action);
Type parameters
T
The type of the component.
Parameters
action DefaultEcs.ComponentEnabledHandler<T>
The ComponentEnabledHandler<T>(Entity, T) to be called.
Returns
System.IDisposable
An System.IDisposable object used to unsubscribe.
Exceptions
System.ArgumentNullException
action is null.