![]() | Reaction Class |
Namespace: ImmerseSDK.Interaction.Reactions
public abstract class Reaction : LoggingBehaviour
The Reaction type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsReacting |
Indicates whether this reaction is currently executing
|
![]() | NumberOfTimesReactionFired |
The number of times the reaction has fired in this session
|
Name | Description | |
---|---|---|
![]() | Awake |
Unity Component method
|
![]() | React |
This method is called when the reaction occurs. Note this might be called on a Coroutine if you specified a delay.
|
![]() | StartReacting |
Start reacting (there could be a delay)
|
![]() | StopReacting |
Stop reacting now
|
Name | Description | |
---|---|---|
![]() | _delayInSeconds |
How long to wait before setting the enabled state of the objects
|
![]() | _numberOfTimesToAllowReaction |
How many reactions to allow?
Specify a number <= 0 to disable the limit, otherwise a number > 0 to limit how many times it will be allowed to fire in a session.
To disable a reaction completely, you should disable the component itself.
|
Name | Description | |
---|---|---|
![]() | GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) |
![]() | WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |