Skip to main content
Up and Coming
December 5, 2014

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);
}


    This topic has been closed for replies.

    4 replies

    Inspiring
    December 5, 2014
    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.
    gabrieadAuthor
    Up and Coming
    December 5, 2014
    No I am not using OVRMainMenu so the key "G" did not cause the problem. What else could it be?
    gabrieadAuthor
    Up and Coming
    December 8, 2014
    I am still having the same problem that the panels freezer.I attached the scripts to the CenterEyeAnchor.
    Any suggestions?
    Inspiring
    December 11, 2014
    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.