Click or drag to resize

RestrictPickup Class

Restricts a Pickup to a specified rectangle, or to snap after a timeout period if it is dropped. It will snap back to it's origin when it either of these criteria is valid.
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.InteractionRestrictPickup

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
[UnityEngine.RequireComponent(typeof(Pickup))]
public class RestrictPickup : LoggingBehaviour

The RestrictPickup type exposes the following members.

Constructors
  NameDescription
Public methodRestrictPickup
Initializes a new instance of the RestrictPickup class
Top
Properties
  NameDescription
Public propertyDelaySnapAfterDisengagementInSeconds
If this value > 0, then the pickup will be snapped to Origin after it is dropped
Public propertyForceEngagementToStop
Force stop engagement if the object passes outside of the boundary
Public propertyLocalBounds
Bounds in Local space to restrict the Pickup to
Public propertySnapTarget
Snap to this target, or if null, snap to origin
Public propertyStartPosition
Top
Methods
  NameDescription
Protected methodOnEnable
Top
Fields
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