GameObjectPool.AddCreator(GameObjectCreator, String) Method

Definition

GameObjects are created by an implementation of IGameObjectCreator in this GameObjectPool. This method adds your implementation of the IGameObjectCreator to use for objects that share a specific object identifier.

public:
 void AddCreator(Microsoft::MixedReality::Toolkit::Utilities::GameObjectManagement::GameObjectCreator ^ creator, System::String ^ objectIdentifier);
public void AddCreator (Microsoft.MixedReality.Toolkit.Utilities.GameObjectManagement.GameObjectCreator creator, string objectIdentifier);
member this.AddCreator : Microsoft.MixedReality.Toolkit.Utilities.GameObjectManagement.GameObjectCreator * string -> unit
Public Sub AddCreator (creator As GameObjectCreator, objectIdentifier As String)

Parameters

creator
GameObjectCreator

The implementation of IGameObjectCreator to use for GameObjects associated with the objectIdentifier.

objectIdentifier
String

The identifier you want to use to identify the kind of game objects you want to create.

Applies to