Describes an action to perform when a Grab Process is executed.
- System.Object
- GrabInteractableAction
- GrabInteractableControlDirectionAction
- GrabInteractableFollowAction
- GrabInteractableScaleAction
- GrabInteractableSwapAction
public class GrabInteractableAction : MonoBehaviour
The internal setup for the grab action.
public GrabInteractableConfigurator GrabSetup { get; set; }
The input ActiveCollisionConsumerEventProxyEmitter for the grab action.
public ActiveCollisionConsumerEventProxyEmitter InputActiveCollisionConsumer { get; protected set; }
The input GameObjectEventProxyEmitter for the grab action.
public GameObjectEventProxyEmitter InputGrabReceived { get; protected set; }
The input GameObjectEventProxyEmitter for any pre setup on grab.
public GameObjectEventProxyEmitter InputGrabSetup { get; protected set; }
The input GameObjectEventProxyEmitter for the grab action.
public GameObjectEventProxyEmitter InputUngrabReceived { get; protected set; }
The input GameObjectEventProxyEmitter for any post reset on ungrab.
public GameObjectEventProxyEmitter InputUngrabReset { get; protected set; }
Notifies that the Interactable is being grabbed.
public virtual void NotifyGrab(GameObject data)
Type | Name | Description |
---|---|---|
GameObject | data | The grabbing object. |
Notifies that the Interactable is no longer being grabbed.
public virtual void NotifyUngrab(GameObject data)
Type | Name | Description |
---|---|---|
GameObject | data | The previous grabbing object. |
Called after GrabSetup has been changed.
protected virtual void OnAfterGrabSetupChange()