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.25 Reference Guide

OVRPlatformMenu Class Reference

Shows the Oculus plaform UI.
MonoBehaviour inherited by OVRPlatformMenu.

Data Fields

KeyCode
keyCode ( )
The key code.
eHandler
System.Func< bool >
Callback to handle short press.

Private Static Fields

static Stack< string >

Private Data Fields

float
float
float
int
int
upCount ( )
float

Private Member Functions

eBackButtonAction
ResetAndSendAction ( eBackButtonAction action )
eBackButtonAction
void
Awake ( )
Instantiate the cursor timer
void
OnApplicationFocus ( bool focusState )
Reset when resuming
void
OnApplicationPause ( bool pauseStatus )
Reset when resuming
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
DOUBLE_TAP
SHORT_PRESS

Field Documentation

KeyCode OVRPlatformMenu.keyCode ( )
The key code.
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

float OVRPlatformMenu.doubleTapDelay ( )
float OVRPlatformMenu.shortPressDelay ( )
float OVRPlatformMenu.longPressDelay ( )
int OVRPlatformMenu.downCount ( )
int OVRPlatformMenu.upCount ( )
float OVRPlatformMenu.initialDownTime ( )

Object Data Documentation

eBackButtonAction OVRPlatformMenu.ResetAndSendAction ( eBackButtonAction action )
eBackButtonAction OVRPlatformMenu.HandleBackButtonState ( )
void OVRPlatformMenu.Awake ( )
Instantiate the cursor timer
void OVRPlatformMenu.OnApplicationFocus ( bool focusState )
Reset when resuming
void OVRPlatformMenu.OnApplicationPause ( bool pauseStatus )
Reset when resuming
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: OVR/Scripts/OVRPlatformMenu.cs