Click or drag to resize

OnSnappedReaction Class

Specify a reaction for when a specific state is reached on a TransformSync. Use this on SnapTargets or on a TransformSync itself when snapping to origin is enabled. Note that if this component or the GameObject it is on is disabled, the reaction will not fire. It is up to you to ensure that the enabled state of these are synchronised between different users.
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 OnSnappedReaction : Reaction

The OnSnappedReaction type exposes the following members.

Constructors
  NameDescription
Protected methodOnSnappedReaction
Initializes a new instance of the OnSnappedReaction class
Top
Methods
  NameDescription
Protected methodAwake
Unity Component method
(Overrides ReactionAwake.)
Public methodInitialize
Called to initialise the reaction and bind it to it's owning TransformSync. This does not happen in Awake() method since the order Unity calls awake methods is not deterministic, so this object might not have it's Awake called after the TransformSync's Awake()
Top
Fields
  NameDescription
Private field_anySnapTarget
React on any target snapped
Private field_reactOnStartState
React when the reaction is initialised
Private field_whenUnsnapped
React when unsnapped instead of when snapped
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