GameObjectCreatorFromMetadata Class

Namespace: Improbable.Gdk.GameObjectCreationSource

Inheritance

Improbable.Gdk.GameObjectCreation.IEntityGameObjectCreator


Constructors

GameObjectCreatorFromMetadata Source
GameObjectCreatorFromMetadata(string workerType, Vector3 workerOrigin)

Parameters
  • string workerType :
  • Vector3 workerOrigin :


Methods

PopulateEntityTypeExpectations Source
void PopulateEntityTypeExpectations(EntityTypeExpectations entityTypeExpectations)

Called to register the components expected on an entity to create a GameObject for a given entity type.

Parameters

OnEntityCreated Source
void OnEntityCreated(SpatialOSEntityInfo entityInfo, GameObject prefab, EntityManager entityManager, 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

Updated about a year ago


GameObjectCreatorFromMetadata Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.