OvidVR Enable Disable On Attach

In the OvidVRPhysX package you can also find the OvidVREnableDisableOnAttach script. In many occasions the developer might want to disable certain game objects when an interaction with an object starts.

For example, the developer might want to disable a UI indicator on attach and re-enable it on detach. It is also very common for the developer to want to disable the virtual hands’ renderers and replace them with a specific grab pose while interacting with a game object.

All the above features are implemented in this script.

OvidVR Enable Disable On Attach

Parameter

Description

Enable On Left/Right Hand Interact

The prefabs referenced here will be enabled when the user interacts with the left/right hand.

Disable On Left/Right Hand Interact:

The prefabs referenced here will be disabled when the user interacts with the left/right hand.

Manual Reset

If true, once disable/enable happens on begin interaction it does not stop until reset is called. Recommendation keep it false.

Disable All On Interact

The prefabs referenced on both Disable left and right lists will be disabled when the user interacts with the item.

Disable Left Hand Renderer On Interact

If true, disable the renderer of the virtual left hand when interacting with object.

Disable Right Hand Renderer On Interact

If true, disable the renderer of the virtual right hand when interacting with object.