World.SubscribeEntityDisposed(EntityDisposedHandler).md

March 19, 2022 ยท View on GitHub

DefaultEcs

DefaultEcs.World

World.SubscribeEntityDisposed(EntityDisposedHandler) Method

Subscribes an EntityDisposedHandler(Entity) on the current World to be called when an Entity is disposed.

public System.IDisposable SubscribeEntityDisposed(DefaultEcs.EntityDisposedHandler action);

Parameters

action EntityDisposedHandler(Entity)

The EntityDisposedHandler(Entity) to be called.

Returns

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

Exceptions

System.ArgumentNullException
action is null.