API reference
API reference
Select your platform
No SDKs available
No versions available

BoolMonitor Class

This class monitors a bool with the intention of recording its value and whether this value has changed.
The record can be used by UI elements (including OVRHandTest.uiText) to output the bool's value as a tool for debugging.

Member Functions

This is a delegate that represents a function where a bool value is being turned on or off.
This is the bool the class will be monitoring.
BoolMonitor
( string name,
BoolGenerator generator,
float displayTimeout )
This method checks if the previous value of the bool is different from the current value and updates the display timer accordingly.
Used by OVRHandTest.Update.
Given a string builder, this appends the current value of the bool onto the string builder.
If the value is different from the previous value, it adds asterisks around it.
Parameters
sb
The string builder you want to append to.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon