Active
: bool
[Get] |
Evaluates the current state of the component and returns whether it is active.
The logic for determining the active state is defined by the implementing class. This method is typically used in interaction scripts to check whether a certain condition is met before triggering an event or action. For example implementations, please refer to HandActiveState.Active and ActiveStateGroup.Active.
Signature
bool 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 CurrentActivationStep |
Awake
()
|
Signature
virtual void Awake() Returns void |
Start
()
|
Signature
virtual void Start() Returns void |
Update
()
|
Signature
virtual void Update() Returns void |
InjectOptionalRemainActiveWhile
(
activeState
)
|
Signature
void InjectOptionalRemainActiveWhile(IActiveState activeState) Parameters activeState: IActiveStateReturns void |
InjectOptionalStepsToActivate
(
stepsToActivate
)
|
Signature
void InjectOptionalStepsToActivate(ActivationStep[] stepsToActivate) Parameters stepsToActivate: ActivationStep[]Returns void |
InjectOptionalTimeProvider
(
timeProvider
)
|
Signature
void InjectOptionalTimeProvider(Func< float > timeProvider) Parameters timeProvider: Func< float >Returns void |
SetTimeProvider
(
timeProvider
)
|
Sets a function that returns the current time in seconds.
Signature
void SetTimeProvider(Func< float > timeProvider) Parameters timeProvider: Func< float >Returns void |
ActivationStep
()
|
Signature
ActivationStep() |
ActivationStep
(
activeState
, minActiveTime
, maxStepTime
)
|
Signature
ActivationStep(IActiveState activeState, float minActiveTime, float maxStepTime) Parameters |
ActiveState
: IActiveState
[Get] |
Signature
IActiveState ActiveState |
MaxStepTime
: float
[Get] |
Signature
float MaxStepTime |
MinActiveTime
: float
[Get] |
Signature
float MinActiveTime |
Start
()
|
Signature
void Start() Returns void |