Class InteractableOnGrabReceiver
A basic grab event receiver for detecting grab events (OnGrab, OnRelease) or grab state changes from Interactable When the grab states change, on or off, these events are triggered
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.UI
Assembly: cs.temp.dll.dll
Syntax
public class InteractableOnGrabReceiver : ReceiverBase
Constructors
InteractableOnGrabReceiver()
Creates a receiver that raises grab start and end events.
Declaration
public InteractableOnGrabReceiver()
InteractableOnGrabReceiver()
Creates a receiver that raises grab start and end events.
Declaration
public InteractableOnGrabReceiver()
InteractableOnGrabReceiver(UnityEvent)
Creates a receiver that raises grab start and end events.
Declaration
public InteractableOnGrabReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
InteractableOnGrabReceiver(UnityEvent)
Creates a receiver that raises grab start and end events.
Declaration
public InteractableOnGrabReceiver(UnityEvent ev)
Parameters
Type | Name | Description |
---|---|---|
UnityEvent | ev |
Fields
OnRelease
Invoked on grab release
Declaration
public UnityEvent OnRelease
Field Value
Type | Description |
---|---|
UnityEvent |
OnRelease
Invoked on grab release
Declaration
public UnityEvent OnRelease
Field Value
Type | Description |
---|---|
UnityEvent |
Properties
OnGrab
Invoked on grab start
Declaration
public UnityEvent OnGrab { get; }
Property Value
Type | Description |
---|---|
UnityEvent |
OnGrab
Invoked on grab start
Declaration
public UnityEvent OnGrab { get; }
Property Value
Type | Description |
---|---|
UnityEvent |
Methods
OnUpdate(InteractableStates, Interactable)
Declaration
public override void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |
Overrides
OnUpdate(InteractableStates, Interactable)
Declaration
public override void OnUpdate(InteractableStates state, Interactable source)
Parameters
Type | Name | Description |
---|---|---|
InteractableStates | state | |
Interactable | source |