Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.43 KB

World.SubscribeComponentEnabled_T_(ComponentEnabledHandler_T_).md

File metadata and controls

33 lines (21 loc) · 2.43 KB

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.