Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 2.35 KB

World.SubscribeComponentAdded_T_(ComponentAddedHandler_T_).md

File metadata and controls

33 lines (21 loc) · 2.35 KB

World.SubscribeComponentAdded(ComponentAddedHandler) Method

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

public System.IDisposable SubscribeComponentAdded<T>(DefaultEcs.ComponentAddedHandler<T> action);

Type parameters

T

The type of the component.

Parameters

action DefaultEcs.ComponentAddedHandler<T>

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

Returns

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

Exceptions

System.ArgumentNullException
action is null.