docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CastRay

    CastRay(RaycastInput)

    Declaration
    bool CastRay(RaycastInput input)
    Parameters
    Type Name Description
    RaycastInput input
    Returns
    Type Description
    bool

    CastRay(RaycastInput, out RaycastHit)

    Declaration
    bool CastRay(RaycastInput input, out RaycastHit closestHit)
    Parameters
    Type Name Description
    RaycastInput input
    RaycastHit closestHit
    Returns
    Type Description
    bool

    CastRay(RaycastInput, ref NativeList<RaycastHit>)

    Declaration
    bool CastRay(RaycastInput input, ref NativeList<RaycastHit> allHits)
    Parameters
    Type Name Description
    RaycastInput input
    NativeList<RaycastHit> allHits
    Returns
    Type Description
    bool

    CastRay<T>(RaycastInput, ref T)

    Declaration
    bool CastRay<T>(RaycastInput input, ref T collector) where T : struct, ICollector<RaycastHit>
    Parameters
    Type Name Description
    RaycastInput input
    T collector
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    In This Article
    Back to top
    Copyright © 2024 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)