Sites

Menu

IEntityGameObjectCreator Interface

Namespace: Improbable.Gdk.GameObjectCreation
GDK package: GameObjectCreation
Source

Interface for listening for SpatialOS Entity creation to be used for binding GameObjects. Implementing classes can be passed to GameObjectCreationSystemHelper in order to be called.


Methods

OnEntityCreated Source
void OnEntityCreated(SpatialOSEntity entity, EntityGameObjectLinker linker)

Called when a new SpatialOS Entity is checked out by the worker.

Returns:
A GameObject to be linked to the entity, or null if no GameObject should be linked.

Parameters
OnEntityRemoved Source
void OnEntityRemoved(EntityId entityId)

Called when a SpatialOS Entity is removed from the worker's view.

Parameters

Search results

Was this page helpful?

Thanks for letting us know!

Thanks for your feedback

Need more help? Ask on the forums