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.

C++
public:
 void AddCreator(Microsoft::MixedReality::Toolkit::Utilities::GameObjectManagement::GameObjectCreator ^ creator, System::String ^ objectIdentifier);

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

Produkt Wersje
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0