World.SubscribeComponentRemoved_T_(ComponentRemovedHandler_T_).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.World

World.SubscribeComponentRemoved(ComponentRemovedHandler) Method

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

public System.IDisposable SubscribeComponentRemoved<T>(DefaultEcs.ComponentRemovedHandler<T> action);

Type parameters

T

The type of the component.

Parameters

action DefaultEcs.ComponentRemovedHandler<T>

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

Returns

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

Exceptions

System.ArgumentNullException
action is null.