World.SubscribeEntityEnabled(EntityEnabledHandler).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.World

World.SubscribeEntityEnabled(EntityEnabledHandler) Method

Subscribes an EntityEnabledHandler(Entity) on the current World to be called when an Entity is enabled.

public System.IDisposable SubscribeEntityEnabled(DefaultEcs.EntityEnabledHandler action);

Parameters

action EntityEnabledHandler(Entity)

The EntityEnabledHandler(Entity) to be called.

Returns

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

Exceptions

System.ArgumentNullException
action is null.