Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.55 KB

World.SubscribeEntityCreated(EntityCreatedHandler).md

File metadata and controls

26 lines (17 loc) · 1.55 KB

World.SubscribeEntityCreated(EntityCreatedHandler) Method

Subscribes an EntityCreatedHandler(Entity) on the current World to be called when an Entity is created.

public System.IDisposable SubscribeEntityCreated(DefaultEcs.EntityCreatedHandler action);

Parameters

action EntityCreatedHandler(Entity)

The EntityCreatedHandler(Entity) to be called.

Returns

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

Exceptions

System.ArgumentNullException
action is null.