Active
: bool
[Get] |
Implements IActiveState.Active, in this case indicating whether the described sequence of IActiveStates has been "recognized" as having occurred with acceptable order and timing.
Signature
bool Oculus.Interaction.PoseDetection.Sequence.Active |
CurrentActivationStep
: int
[Get] |
Returns the index of the step in _stepsToActivate whose conditions are waiting to be activated.
If Active is true, this value will be set to the size of _stepsToActivate. If _stepsToActivate has no steps, this property will be 0.
Signature
int Oculus.Interaction.PoseDetection.Sequence.CurrentActivationStep |
Awake
()
|
Signature
virtual void Oculus.Interaction.PoseDetection.Sequence.Awake() Returns void |
Start
()
|
Signature
virtual void Oculus.Interaction.PoseDetection.Sequence.Start() Returns void |
Update
()
|
Signature
virtual void Oculus.Interaction.PoseDetection.Sequence.Update() Returns void |
InjectOptionalRemainActiveWhile
(
activeState
)
|
Sets the IActiveState for the optional "remain active while" capability (which allows a Sequence to remain active pending the inactivity of the given IActiveState rather than resetting after activation) for a dynamically instantiated Sequence.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.PoseDetection.Sequence.InjectOptionalRemainActiveWhile(IActiveState activeState) Parameters activeState: IActiveStateReturns void |
InjectOptionalStepsToActivate
(
stepsToActivate
)
|
Sets the ActivationSteps for a dynamically instantiated Sequence.
This method exists to support Interaction SDK's dependency injection pattern and is not needed for typical Unity Editor-based usage.
Signature
void Oculus.Interaction.PoseDetection.Sequence.InjectOptionalStepsToActivate(ActivationStep[] stepsToActivate) Parameters stepsToActivate: ActivationStep []Returns void |
InjectOptionalTimeProvider
(
timeProvider
)
|
Signature
void Oculus.Interaction.PoseDetection.Sequence.InjectOptionalTimeProvider(Func< float > timeProvider) Parameters timeProvider: Func< float >Returns void |
SetTimeProvider
(
timeProvider
)
|
Implements ITimeConsumer.SetTimeProvider(Func<float>).
Sets the time provider for this sequence, allowing for the default time provider (Unity's built-in Time.time) to be overridden with custom behavior to enable pausing, time dilation, etc.
Signature
void Oculus.Interaction.PoseDetection.Sequence.SetTimeProvider(Func< float > timeProvider) Parameters timeProvider: Func< float >
The new time provider to be used by this instance.
Returns void |