Sites

Menu

GameObjectCreatorFromMetadata Class

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

Inheritance

Improbable.Gdk.GameObjectCreation.IEntityGameObjectCreator


Constructors

GameObjectCreatorFromMetadata Source
GameObjectCreatorFromMetadata(string workerType, Vector3 workerOrigin, ILogDispatcher logger)

Parameters


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