I was trying to rebuild a UI using the MRKT HolographicButton. This scene as additively loaded and therefore does not have a MixedRealityToolkit in the same scene. But the button requires it to let me configure its InputAction. It even complains with a red sign at the top in the inspector. This makes building UI in seperate scenes or for loading from prefabs a problem.
Several times I read that the preferred way is to have one initial setup scene with the Toolkit. Fixing this looks like not so easy as it requires the Toolkit to be globally accessible without being an instance in any scene.
I can configure the buttons no matter the existence of the toolkit, it'll be there, trust me :)
I cannot configure the button
Add a HolographicButton to an empty scene
2018.3.11.f1
mrtk_release
Maybe it is possible to move the Toolkit totally off scenes. Using:
InitializeOnLoad for the Editor
RuntimeInitializeOnLoadMethod for the final game
If this works, the toolkit could just "exist" and we're done with "add it to frist scene" or "add it to every scene".. "what if additive loading is used instead of single loading...." blablabla
Related: #3921
@Railboy I don't think this is related to #3921. That Issue is about avoiding automatically adding MRTK content while this here is about the HolographicButton desperately needing one. It's not automatically forcing it to be added but rather is not configurable if it's not present.
What it needs to be configurable is the MixedRealityToolkit.Instance.ActiveProfile.InputSystemProfile.InputActionsProfile.InputActions
This makes me wonder why the MixedRealityToolkit is the only entry point to all the configurations being made, which should clearly be just available for any component. You never know in what scene you're working in.
@davidkline-ms this seems related to another issue you own. If there is a greater amount of work required for enabling multiple scene experiences and this needs a new owner, please reach out.
@Alexees You're correct. I've just been lumping all these mrtk singleton related issues into one bucket while we sort out our multi-scene story.
@Railboy could we have 1 issue that track our multi-scene story planning that links to all the the related issues.
This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.
This issue has been closed by an automated process because it is stale. If this is still an issue please add a new comment with more recent details and repro steps.