VRTK_ObjectTouchAutoInteract
Overview
The Object Touch Auto Interact script allows grab or use interactions on an object to automatically happen upon touching the interactable object.
Inspector Parameters
- Grab On Touch When: Determines when a grab on touch should occur.
- Regrab Delay: After being ungrabbed, another auto grab on touch can only occur after this time.
- Continuous Grab Check: If this is checked then the grab on touch check will happen every frame and not only on the first touch of the object.
- Use On Touch When: Determines when a use on touch should occur.
- Reuse Delay: After being unused, another auto use on touch can only occur after this time.
- Continuous Use Check: If this is checked then the use on touch check will happen every frame and not only on the first touch of the object.
- Interactable Object: The interactable object that the auto interaction will occur on. If this is blank then the script must be on the same GameObject as the Interactable Object script.
Class Variables
public enum AutoInteractions
- Situation when auto interaction can occur.Never
- Auto interaction can never occur on touch.NoButtonHeld
- Auto interaction will occur on touch even if the specified interaction button is not held down.ButtonHeld
- Auto interaction will only occur on touch if the specified interaction button is held down.
Updated less than a minute ago