This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
till now we only have the whole GameObjectReference in GltfObject, and it's tidious to write own mapping logic to get corresponding GameObject of specific node, because we only have node name under GltfNode (without NodeId of course), meanwhile, some names could be the same. Comparing tranform could be a solution but definitly not elegant...
Describe the solution you'd like
add Node-GameObject-Pairs Dictionary in GltfObject and add the pair during constructing a node (in Method ConstructNodeAsync).
Describe alternatives you've considered
create a method after construction to pair node id and corresponding GameObject. But as mentioned above, this would be relatively complex.
I like this idea a lot! Would have definitely simplified some of the controller model visualization code I wrote in the original HoloToolkit. Thanks for the contribution!
Describe the problem
till now we only have the whole
GameObjectReference
inGltfObject
, and it's tidious to write own mapping logic to get corresponding GameObject of specific node, because we only have node name underGltfNode
(without NodeId of course), meanwhile, some names could be the same. Comparing tranform could be a solution but definitly not elegant...Describe the solution you'd like
add Node-GameObject-Pairs Dictionary in
GltfObject
and add the pair during constructing a node (in MethodConstructNodeAsync
).Describe alternatives you've considered
create a method after construction to pair node id and corresponding GameObject. But as mentioned above, this would be relatively complex.