C# Class OVRPlatformMenu

Inheritance: MonoBehaviour
Afficher le fichier Open project: leapmotion/ImageGrid

Méthodes publiques

Свойство Type Description
cursorTimer GameObject
cursorTimerColor Color
fixedDepth float

Méthodes publiques

Méthode 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

Méthode Description
HandleBackButtonState ( ) : eBackButtonAction
ResetAndSendAction ( eBackButtonAction action ) : eBackButtonAction

Method Details

Awake() public méthode

Instantiate the cursor timer
public Awake ( ) : void
Résultat void

OnApplicationFocus() public méthode

Reset when resuming
public OnApplicationFocus ( bool focusState ) : void
focusState bool
Résultat void

OnApplicationPause() public méthode

Reset when resuming
public OnApplicationPause ( bool pauseStatus ) : void
pauseStatus bool
Résultat void

OnDestroy() public méthode

Destroy the cloned material
public OnDestroy ( ) : void
Résultat void

ResetCursor() public méthode

public ResetCursor ( ) : void
Résultat void

ShowConfirmQuitMenu() public méthode

Show the confirm quit menu
public ShowConfirmQuitMenu ( ) : void
Résultat void

ShowGlobalMenu() public méthode

Show the platform UI global menu
public ShowGlobalMenu ( ) : void
Résultat void

Update() public méthode

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
Résultat void

UpdateCursor() public méthode

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

Property Details

cursorTimer public_oe property

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

cursorTimerColor public_oe property

The current color of the cursor timer.
public Color cursorTimerColor
Résultat Color

fixedDepth public_oe property

The distance at which the cursor timer appears.
public float fixedDepth
Résultat float