C# Class OVRPlatformMenu

Inheritance: MonoBehaviour
显示文件 Open project: leapmotion/ImageGrid

Public Properties

Property Type Description
cursorTimer GameObject
cursorTimerColor Color
fixedDepth float

Public Methods

Method Description
Awake ( ) : void

Instantiate the cursor timer

OnApplicationFocus ( bool focusState ) : void

Reset when resuming

OnApplicationPause ( bool pauseStatus ) : void

Reset when resuming

OnDestroy ( ) : void

Destroy the cloned material

ResetCursor ( ) : void
ShowConfirmQuitMenu ( ) : void

Show the confirm quit menu

ShowGlobalMenu ( ) : void

Show the platform UI global menu

Update ( ) : void

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

UpdateCursor ( float timerRotateRatio ) : void

Update the cursor based on how long the back button is pressed

Private Methods

Method Description
HandleBackButtonState ( ) : eBackButtonAction
ResetAndSendAction ( eBackButtonAction action ) : eBackButtonAction

Method Details

Awake() public method

Instantiate the cursor timer
public Awake ( ) : void
return void

OnApplicationFocus() public method

Reset when resuming
public OnApplicationFocus ( bool focusState ) : void
focusState bool
return void

OnApplicationPause() public method

Reset when resuming
public OnApplicationPause ( bool pauseStatus ) : void
pauseStatus bool
return void

OnDestroy() public method

Destroy the cloned material
public OnDestroy ( ) : void
return void

ResetCursor() public method

public ResetCursor ( ) : void
return void

ShowConfirmQuitMenu() public method

Show the confirm quit menu
public ShowConfirmQuitMenu ( ) : void
return void

ShowGlobalMenu() public method

Show the platform UI global menu
public ShowGlobalMenu ( ) : void
return void

Update() public method

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
public Update ( ) : void
return void

UpdateCursor() public method

Update the cursor based on how long the back button is pressed
public UpdateCursor ( float timerRotateRatio ) : void
timerRotateRatio float
return void

Property Details

cursorTimer public_oe property

A timer that appears at the gaze cursor before a platform UI transition.
public GameObject cursorTimer
return GameObject

cursorTimerColor public_oe property

The current color of the cursor timer.
public Color cursorTimerColor
return Color

fixedDepth public_oe property

The distance at which the cursor timer appears.
public float fixedDepth
return float