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 Scale Object With Hold gesture?
example if i air tap my gameobject i open a hover state but how i can use the hold gesture to scale my gameobj
Best Answers
-
Optionstimg mod
The hold gesture alone might be insufficient for scaling. Will you scale up or down? Take a look, instead, at the Navigation gesture. You can lock your navigation axis to X, Y, or Z (or some combination); Z probably works most intuitively for a zoom-type gesture. Adjust your GameObject's scale based on the values that come out of the NavigationUpdated event.
6 -
Optionsneerajwadhwa mod
@weister I would recommend using the Manipulation gesture demonstrated in the Holograms 211 course.
Navigation is great for scenarios like scrolling large amounts of data on a web page or rotating objects. You can get data from the API along X and Y.
Manipulation is great for scenarios that need more fine motions like moving objects or resizing objects. Translate will give you access to X, Y and Z. Based on how much these values changed, you can scale your objects along different axes.
5
Answers
The hold gesture alone might be insufficient for scaling. Will you scale up or down? Take a look, instead, at the Navigation gesture. You can lock your navigation axis to X, Y, or Z (or some combination); Z probably works most intuitively for a zoom-type gesture. Adjust your GameObject's scale based on the values that come out of the NavigationUpdated event.
@weister,
As @timg mentions, you will most likely want to use the Navigation gesture. I suggest looking at the Holograms 211 course. It demonstrates using the Navigation gesture to rotate an object. Adapting the example to scaling should be reasonably straight-forward.
Thanks!
David
@weister I would recommend using the Manipulation gesture demonstrated in the Holograms 211 course.
Navigation is great for scenarios like scrolling large amounts of data on a web page or rotating objects. You can get data from the API along X and Y.
Manipulation is great for scenarios that need more fine motions like moving objects or resizing objects. Translate will give you access to X, Y and Z. Based on how much these values changed, you can scale your objects along different axes.