docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum EnvironmentRaycastHitStatus

    An enum representing the status of an environmental raycast as matching the Meta OpenXR Environment Raycast plugin enum.

    Namespace: UnityEngine.XR.OpenXR.Features.Meta
    Assembly: Unity.XR.MetaOpenXR.dll
    Syntax
    public enum EnvironmentRaycastHitStatus

    Fields

    Name Description
    Hit

    The intersection with the environment is found.

    HitInvalidOrientation

    The intersection with the environment is found, but the hit orientation cannot be determined. In this case, Unity will populate related rotation data with the value Quaternion.identity.

    HitPointOccluded

    The ray intersects with the environment, but the actual hit point is invisible. You can use this information to inform the user that they may need to move to see the hit point.

    HitPointOutsideOfFov

    The hit point can't be determined because it lies outside of the field of view. No hit is found. You can use this information to request that the user reposition the ray and try casting again.

    NoHit

    The intersection with the environment is not found.

    RayOccluded

    The ray is completely occluded by the environment. No hit is found. You can use this information to request that the user reposition the ray and try casting again.

    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)