Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
gabriead's avatar
gabriead
Honored Guest
12 years ago

Text freezes when activated?!

Hi there,

I am using Unity 4.6 Pro with the Rift intgeration and I am currently using the new GUI System. I have a canvas, a panel and a text. When I push "G" the panel should be activated and the text should appear. Both panel and text do appear but they freezes and do not move with the movement of the Rift. What is causing the problem here?


public GameObject panel2;

if(Input.GetKeyDown(KeyCode.G))
{
Debug.Log ("Key S was pressed");
panel2.setActive(true);
}


4 Replies

Replies have been turned off for this discussion
  • Are you using OVRMainMenu? If so, try disabling it. It adds OVRGridCube, which uses KeyCode.G to toggle a grid overlay that may be misbehaving.
  • No I am not using OVRMainMenu so the key "G" did not cause the problem. What else could it be?
  • I am still having the same problem that the panels freezer.I attached the scripts to the CenterEyeAnchor.
    Any suggestions?
  • Try making a new GameObject that's a child of centerEyeAnchor and attaching your script to that. If your script deactivates the centerEyeAnchor GameObject itself, it might cause problems.