docs.unity3d.com
    Show / Hide Table of Contents

    AR Gesture Interactor

    The ARGestureInteractor allows the user to manipulate virtual objects (select, translate, rotate, scale, and elevate) through gestures (tap, drag, twist, and pinch).

    To make use of this, add an ARGestureInteractor to your scene and an ARBaseGestureInteractable to any of your virtual objects.

    ARGestureInteractor component

    Property Description
    Interaction Manager The XRInteractionManager that this Interactor will communicate with (will find one if None).
    Interaction Layer Mask Allows interaction with Interactables whose Interaction Layer Mask overlaps with any Layer in this Interaction Layer Mask.
    Attach Transform The Transform that is used as the attach point for Interactables.
    Automatically instantiated and set in Awake if None.
    Setting this will not automatically destroy the previous object.
    Starting Selected Interactable The Interactable that this Interactor automatically selects at startup (optional, may be None).
    Keep Selected Target Valid Whether to keep selecting an Interactable after initially selecting it even when it is no longer a valid target.
    Enable to make the XRInteractionManager retain the selection even if the Interactable is not contained within the list of valid targets.
    Disable to make the Interaction Manager clear the selection if it isn't within the list of valid targets. A common use for disabling this is for XR Ray Interactors used for teleportation to make the teleportation Interactable no longer selected when not currently pointing at it.
    XR Origin The XROrigin that this Interactor will use (such as to get the Camera or to transform from Session space). Will find one if None.
    AR Session Origin This is deprecated. Use the above XR Origin instead.
    Interactor Events See the Interactor Events page.
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023