Skip to main content
Inspiring
June 23, 2013

Very minor issue in OVRMainMenu.cs

In OVRMainMenu's Awake():

		// Find player controller
OVRPlayerController[] PlayerControllers;
PlayerControllers = gameObject.GetComponentsInChildren<OVRPlayerController>();

if(PlayerControllers.Length == 0)
Debug.LogWarning("OVRMainMenu: No OVRPlayerController attached.");
else if (CameraControllers.Length > 1)
Debug.LogWarning("OVRMaunMenu: More then 1 OVRPlayerController attached.");
else
PlayerController = PlayerControllers[0];


The main issue here is that it's checking CameraControllers.Length > 1 instead of PlayerControllers.Length, and the second nitpicky issue is that OVRMaunMenu should be OVRMainMenu.
    This topic has been closed for replies.

    2 replies

    Inspiring
    June 25, 2013
    OK. Thanks for the feedback.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Inspiring
    June 25, 2013
    Thanks for catching this! Fixed :)
    Peter Giokaris Senior Software Engineer