Forum Discussion
drash
13 years agoHeroic Explorer
Very minor issue in OVRMainMenu.cs
In OVRMainMenu's Awake():
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.
// 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.
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionOK. Thanks for the feedback.
- petergiokarisProtegeThanks for catching this! Fixed :)
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 2 years ago
- 2 months ago
- 2 years ago
- 12 months ago