Skip to content

Latest commit

 

History

History
169 lines (116 loc) · 3.58 KB

File metadata and controls

169 lines (116 loc) · 3.58 KB

Class GrabInteractableAction

Describes an action to perform when a Grab Process is executed.

Contents

Details

Inheritance
Namespace
Syntax
public class GrabInteractableAction : MonoBehaviour

Properties

GrabSetup

The internal setup for the grab action.

Declaration
public GrabInteractableConfigurator GrabSetup { get; set; }

InputActiveCollisionConsumer

The input ActiveCollisionConsumerEventProxyEmitter for the grab action.

Declaration
public ActiveCollisionConsumerEventProxyEmitter InputActiveCollisionConsumer { get; protected set; }

InputGrabReceived

The input GameObjectEventProxyEmitter for the grab action.

Declaration
public GameObjectEventProxyEmitter InputGrabReceived { get; protected set; }

InputGrabSetup

The input GameObjectEventProxyEmitter for any pre setup on grab.

Declaration
public GameObjectEventProxyEmitter InputGrabSetup { get; protected set; }

InputUngrabReceived

The input GameObjectEventProxyEmitter for the grab action.

Declaration
public GameObjectEventProxyEmitter InputUngrabReceived { get; protected set; }

InputUngrabReset

The input GameObjectEventProxyEmitter for any post reset on ungrab.

Declaration
public GameObjectEventProxyEmitter InputUngrabReset { get; protected set; }

Methods

NotifyGrab(GameObject)

Notifies that the Interactable is being grabbed.

Declaration
public virtual void NotifyGrab(GameObject data)
Parameters
Type Name Description
GameObject data The grabbing object.

NotifyUngrab(GameObject)

Notifies that the Interactable is no longer being grabbed.

Declaration
public virtual void NotifyUngrab(GameObject data)
Parameters
Type Name Description
GameObject data The previous grabbing object.

OnAfterGrabSetupChange()

Called after GrabSetup has been changed.

Declaration
protected virtual void OnAfterGrabSetupChange()