docs.unity.cn
    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
    Syntax
    public enum HitDetectionType : int

    Fields

    Name Description Value
    Raycast

    Uses Raycast to detect collisions.

    0
    SphereCast

    Uses Sphere Cast to detect collisions.

    1
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021