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.

custom AppBar

Hi,

I have been using the description provided here.
https://github.com/Microsoft/MixedRealityToolkit-Unity/blob/master/Assets/HoloToolkit-Examples/UX/Readme/README_BoundingBoxGizmoExample.md#how-to-add-custom-buttons-to-the-app-bar
Able to add the 4th button but tapped event is not triggering it.
How & Where to add the triggering event ? Any example or steps of custom AppBar?

this is what i did, very basic.
0- use the same project for bounding box example
1- On Button property of "AppBar" prefab, typed 1 and hence able to see the 4th button.
2- On Tapped Event , i attached the basic following script for the method "Translate" but its not triggering it.

How to add the script? and on which object to add the script ?
( AppBar prefab or object of interest? )

public class CustomAppBarTest : MonoBehaviour {

// Use this for initialization
void Start()
{
    Debug.Log("CustomAppBarTest::Start");
}
public void Translate()
{
    Debug.Log("CustomAppBarTest::Translate");
    this.gameObject.transform.position += new Vector3(.01f, .01f, .01f);
}

}

Any suggestions?

Answers

Sign In or Register to comment.