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

ITimeConsumer Interface

A general interface for replacing the global time provider used in an object.
Grouping classes that use this pattern under this interface allows changing multiple objects easily. See Oculus.Interaction.Grabbable for an example implementation.

Member Functions

Sets a custom function that provides the current time in seconds.
Parameters
timeProvider
A delegate that returns the current time in seconds.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon