Tanoda
Leap.Unity.FrameRateControls Class Reference

Provides control of target frame rate. More...

Inheritance diagram for Leap.Unity.FrameRateControls:

Public Member Functions

void ResetRender ()
 
void ResetPhysics ()
 
void ResetAll ()
 

Public Attributes

int targetRenderRate = 60
 
int targetRenderRateStep = 1
 
int fixedPhysicsRate = 50
 
int fixedPhysicsRateStep = 1
 
KeyCode unlockRender = KeyCode.RightShift
 
KeyCode unlockPhysics = KeyCode.LeftShift
 
KeyCode decrease = KeyCode.DownArrow
 
KeyCode increase = KeyCode.UpArrow
 
KeyCode resetRate = KeyCode.Backspace
 

Detailed Description

Provides control of target frame rate.

This utility is useful for verifying frame-rate independence of behaviors.

Definition at line 19 of file FrameRateControls.cs.

Member Function Documentation

◆ ResetAll()

void Leap.Unity.FrameRateControls.ResetAll ( )

Definition at line 84 of file FrameRateControls.cs.

◆ ResetPhysics()

void Leap.Unity.FrameRateControls.ResetPhysics ( )

Definition at line 79 of file FrameRateControls.cs.

◆ ResetRender()

void Leap.Unity.FrameRateControls.ResetRender ( )

Definition at line 74 of file FrameRateControls.cs.

Member Data Documentation

◆ decrease

KeyCode Leap.Unity.FrameRateControls.decrease = KeyCode.DownArrow

Definition at line 26 of file FrameRateControls.cs.

◆ fixedPhysicsRate

int Leap.Unity.FrameRateControls.fixedPhysicsRate = 50

Definition at line 22 of file FrameRateControls.cs.

◆ fixedPhysicsRateStep

int Leap.Unity.FrameRateControls.fixedPhysicsRateStep = 1

Definition at line 23 of file FrameRateControls.cs.

◆ increase

KeyCode Leap.Unity.FrameRateControls.increase = KeyCode.UpArrow

Definition at line 27 of file FrameRateControls.cs.

◆ resetRate

KeyCode Leap.Unity.FrameRateControls.resetRate = KeyCode.Backspace

Definition at line 28 of file FrameRateControls.cs.

◆ targetRenderRate

int Leap.Unity.FrameRateControls.targetRenderRate = 60

Definition at line 20 of file FrameRateControls.cs.

◆ targetRenderRateStep

int Leap.Unity.FrameRateControls.targetRenderRateStep = 1

Definition at line 21 of file FrameRateControls.cs.

◆ unlockPhysics

KeyCode Leap.Unity.FrameRateControls.unlockPhysics = KeyCode.LeftShift

Definition at line 25 of file FrameRateControls.cs.

◆ unlockRender

KeyCode Leap.Unity.FrameRateControls.unlockRender = KeyCode.RightShift

Definition at line 24 of file FrameRateControls.cs.


The documentation for this class was generated from the following file: