Hello everyone.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
How to use MR Toolkit buttons?
Hi everyone! So possibly stupid question, but I brought in a button prefab from the MRTK into my scene and theres no way to connect interactions. Usually I would use the Button component and use the "onClick" field and connect a script, but there isnt one here. I might just be overlooking something simple though...
Thanks!
Tagged:
0
Best Answer
-
JayZuo mod
Hi @MidnightCoffee,
As you've known, there is no
onClick
event for Button component in MR toolkit. Here, to handle Button's input events, you can use a Receiver.With Receiver, you can handle events from multiple objects in a single script. To use it, simply create a script and inherit from InteractionReceiver.
For more info, please see Interactable Objects & Receiver and also the InteractableObjectExamples.
5
Answers
Hi @MidnightCoffee,
As you've known, there is no
onClick
event for Button component in MR toolkit. Here, to handle Button's input events, you can use a Receiver.With Receiver, you can handle events from multiple objects in a single script. To use it, simply create a script and inherit from InteractionReceiver.
For more info, please see Interactable Objects & Receiver and also the InteractableObjectExamples.
Hi, links are broken, anyway to get this infor about Receiver and InteractionReceiver?
Thanks