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

Changing Gaze Ruler Measurements

Not sure if this is the right place to ask but is it possible to change the Gaze Rulers units once it as already been created?

I have managed to get it to change to cm however it seems to change based on my cursors location:

Basicially i have the gaze ruler start as normal but upon voice command have it change to centimeters. That said it is looking for the GazeManagers.hit position so I need to figure out how to change it from that to the initial value it gave in Meters. Any advice or help would be greatly appreciated.

[code=CSharp] public void CentimetersShow()
{
CentimeterShow = true;
MeterShow = false;
Input.GetComponent().Play();
//unit is meter
if (GameObject.FindGameObjectWithTag("Tip") == true)
{
GameObject[] Unit;
Unit = GameObject.FindGameObjectsWithTag("Tip");
Vector3 hitPoint = GazeManager.Instance.HitPosition;
float distance = Vector3.Distance(lastPoint.Position, hitPoint);

            foreach (GameObject test in Unit)
            {
                test.GetComponent<TextMesh>().text = distance * 100f + "cm";
            }
        }

[/code]

Sign In or Register to comment.