uiText
: Text |
The UI text used in outputting the debug records related to the bools that are being monitored (HandState, Skeletons, and Meshes).
Signature
Text uiText |
BoolMonitor
(
name
, generator
, displayTimeout
)
|
Signature
BoolMonitor(string name, BoolGenerator generator, float displayTimeout=0.5f) Parameters name: stringgenerator: BoolGeneratordisplayTimeout: float |
AppendToStringBuilder
(
sb
)
|
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.
Signature
void AppendToStringBuilder(ref StringBuilder sb) Parameters sb: ref StringBuilder
The string builder you want to append to.
Returns void |
BoolGenerator
()
|
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.
Signature
delegate bool BoolGenerator() Returns delegate bool |
Update
()
|
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.
Signature
void Update() Returns void |