docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum XRRayInteractor.HitDetectionType

    Sets which shape of physics cast to use for the cast when detecting collisions.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public enum XRRayInteractor.HitDetectionType

    Fields

    Name Description
    ConeCast

    Uses cone casting to detect collisions.

    Raycast

    Uses Physics Ray cast to detect collisions.

    SphereCast

    Uses Physics Sphere Cast to detect collisions.

    See Also
    hitDetectionType
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)