Click or drag to resize

Reaction Class

Base class for all reactions
Inheritance Hierarchy

Namespace:  ImmerseSDK.Interaction.Reactions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public abstract class Reaction : LoggingBehaviour

The Reaction type exposes the following members.

Constructors
  NameDescription
Protected methodReaction
Initializes a new instance of the Reaction class
Top
Properties
  NameDescription
Public propertyIsReacting
Indicates whether this reaction is currently executing
Public propertyNumberOfTimesReactionFired
The number of times the reaction has fired in this session
Top
Methods
  NameDescription
Protected methodAwake
Unity Component method
Protected methodReact
This method is called when the reaction occurs. Note this might be called on a Coroutine if you specified a delay.
Public methodStartReacting
Start reacting (there could be a delay)
Protected methodStopReacting
Stop reacting now
Top
Fields
  NameDescription
Private field_delayInSeconds
How long to wait before setting the enabled state of the objects
Private field_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.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also