Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.45 KB

World.SubscribeComponentChanged_T_(ComponentChangedHandler_T_).md

File metadata and controls

33 lines (21 loc) · 2.45 KB

World.SubscribeComponentChanged(ComponentChangedHandler) Method

Subscribes a ComponentChangedHandler<T>(Entity, T, T) on the current World to be called when a component of type T is changed.

public System.IDisposable SubscribeComponentChanged<T>(DefaultEcs.ComponentChangedHandler<T> action);

Type parameters

T

The type of the component.

Parameters

action DefaultEcs.ComponentChangedHandler<T>

The ComponentChangedHandler<T>(Entity, T, T) to be called.

Returns

System.IDisposable
An System.IDisposable object used to unsubscribe.

Exceptions

System.ArgumentNullException
action is null.