-
-
Notifications
You must be signed in to change notification settings - Fork 2
Stopwatch
eisclimber edited this page Feb 11, 2024
·
2 revisions
class in ExPresSXR.Misc.Timing / Extends MonoBehavior
Component added via Component Menu
A simple component to stop the time like a stopwatch.
-
float startTime
: (Readonly) Time when the stopwatch was started or INACTIVE_STOP_TIME if not started. -
float currentStopTime
: (Readonly) How long the stopwatch is currently running or INACTIVE_STOP_TIME if not started. -
bool autoStart
: If true, will start the timer during OnAwake(). -
bool running
: Is true if the stopwatch is currently measuring time.
-
void StartTimeMeasurement()
: Starts a time measurement with the stopwatch. Only updates the startTime when already running. -
string StopTimeMeasurement(bool _restart = false)
: Stops and resets the stopwatch, returns the final time measurement in seconds.
-
float INACTIVE_STOP_TIME = -1.0f
: Returned by currentStopTime if he stopwatch was not started yet.
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI