Click or drag to resize

OnEngagedEnableReaction Class

Reaction for when the engage state of an EngageableObject changes
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.Interaction.ReactionsReaction
              ImmerseSDK.Interaction.ReactionsEngageableObjectReaction
                ImmerseSDK.Interaction.ReactionsOnEngagedEnableReaction

Namespace:  ImmerseSDK.Interaction.Reactions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public class OnEngagedEnableReaction : EngageableObjectReaction

The OnEngagedEnableReaction type exposes the following members.

Constructors
  NameDescription
Public methodOnEngagedEnableReaction
Initializes a new instance of the OnEngagedEnableReaction class
Top
Properties
  NameDescription
Public propertyIsReacting
Indicates if this reaction is currently executing
(Overrides ReactionIsReacting.)
Top
Methods
  NameDescription
Public methodOnEngage
Called when an engage message has been received
(Overrides EngageableObjectReactionOnEngage(Boolean, Controller).)
Protected methodReact
This method is called when the reaction occurs. Note this might be called on a Coroutine if you specified a delay.
(Overrides ReactionReact.)
Top
Fields
  NameDescription
Private field_durationInSeconds
How long to wait before reverting the enabled state of the objects
Private field_shouldTerminateReactionWhenEngagementChange
Terminate reaction when engagement finishes and it's still running
Private field_turnOff
These objects will be deactivated
Private field_turnOn
These objects will be set to active
Private field_when
Which type of engagement action is valid?
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