This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Unity 1.36 Reference Guide

OVRPlatformMenu Class Reference

Shows the Oculus plaform UI.
MonoBehaviour inherited by OVRPlatformMenu.

Object Data

enum
eBackButtonAction {
}

Private Data Fields

OVRInput.RawButton
The key code.

Data Fields

eHandler
System.Func< bool >
Callback to handle short press.

Private Static Fields

static Stack< string >

Private Member Functions

eBackButtonAction
void
Awake ( )
Instantiate the cursor timer
void
Show the confirm quit menu
void
Update ( )
Tests for long-press and activates global platform menu when detected.

Object Data

static bool
Sample handler for short press which retreats to the previous scene that used OVRPlatformMenu.

Member Enumeration Documentation

enum OVRPlatformMenu.eHandler
Enumerator
ShowConfirmQuit
RetreatOneLevel

Object Data Documentation

enum OVRPlatformMenu.eBackButtonAction
Enumerator
NONE
SHORT_PRESS

Object Data Documentation

OVRInput.RawButton OVRPlatformMenu.inputCode ( )
The key code.

Field Documentation

eHandler OVRPlatformMenu.shortPressHandler ( )
System.Func<bool> OVRPlatformMenu.OnShortPress ( )
Callback to handle short press.
Returns true if ConfirmQuit menu should be shown.

Private Static Field Documentation

Stack<string> OVRPlatformMenu.sceneStack ( )

Object Data Documentation

eBackButtonAction OVRPlatformMenu.HandleBackButtonState ( )
void OVRPlatformMenu.Awake ( )
Instantiate the cursor timer
void OVRPlatformMenu.ShowConfirmQuitMenu ( )
Show the confirm quit menu
void OVRPlatformMenu.Update ( )
Tests for long-press and activates global platform menu when detected.
as per the Unity integration doc, the back button responds to "mouse 1" button down/up/etc

Object Data Documentation

static bool OVRPlatformMenu.RetreatOneLevel ( )
Sample handler for short press which retreats to the previous scene that used OVRPlatformMenu.
The documentation for this class was generated from the following file: Oculus/VR/Scripts/OVRPlatformMenu.cs