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.
Focus gaze on a panel
Hello everyone. I have a simple question. I am activating a panel with a few buttons and I want it to stay active while your gaze is on it, and deactivate once your gaze leaves the panel, like a pop-up menu ( with OnFocusEnter() and OnFocusExit() ). How can I focus on the panel with my gaze?
- I've tried attaching a script with IFocusable, but it jumps to OnFocusExit() once it enters the gaze, and deactivates it.
- I've tried doing a Raycast and keeping the panel open if the Raycast hits it. (I added a collider to the panel)
If you have any ideas how to do it, please share. Thanks.
Tagged:
0
Answers
Does your panel have a collider on it that covers the entire panel? And is there anything in front of your panel?
What are you doing OnFocusEnter? I am wondering if something is changing OnEnter that is blocking your gaze and thus triggers the exit.
We have an interactible class specifically for Gaze here:
`
public class GazeInteractible : MonoBehaviour, IFocusable
{
public CustomEvent OnGazeEnterHandler;
public CustomEvent OnGazeLeaveHandler;
if !UNITY_EDITOR
endif
}
`
Taqtile