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.

How to show a panel attached on the canvas

Hi! i'm trying to do project where there are three buttons and when you tap one button, a panel with a text appear.
The problem is when I attached the script, nothing happens.
The "click" is registered but the the panel never come up.

My script is attached to each of the button and is something like this:

public GameObject panel; (i use to put the panel in unity)

bool selected = false;

void Start () {

panel.SetActive(false); 

}

void OnSelect() {

  selected = !selected;
  panel.SetActive(true);

}

I probably have to do something else with the panel but I can't figure it out.

Remember that text is a child of Panel and Panel itself is a child of Canvas.

Sorry to be a bugger :P

Tagged:
Sign In or Register to comment.