GameObjectPool.AddCreator(GameObjectCreator, String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- 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.
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 |