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.
Options

Hold gesture timing

How long does it take for the OnHoldStarted method to fire OnHoldCompleted? I wanted to bring up a selection radial like the one below to start filling when the hold starts, fill when it's completed, and a nice to have would be to have it roll back OnHoldCanceled.

Tagged:

Answers

  • Options

    The time would depend on when the hold is released. Most events function in this manner:

    • Started called
    • After start is called, Holding called every update
    • Completed called when gesture completed succesfully, meaning it recognized that your hand stopped the gesture.
    • Cancelled when gesture cancelled, typically if your hand moves out of view and it can no longer recognize your hand

    You can place a counter in your holding event function and use that as a means of running the animation time.

    http://www.redsprocketstudio.com/
    Developer | Check out my new project blog

Sign In or Register to comment.