docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CastRay

    CastRay(RaycastInput)

    Declaration
    public bool CastRay(RaycastInput input)
    Parameters
    Type Name Description
    RaycastInput input
    Returns
    Type Description
    bool
    Implements
    IQueryable.CastRay(RaycastInput)

    CastRay(RaycastInput, out RaycastHit)

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

    CastRay(RaycastInput, ref NativeList<RaycastHit>)

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

    CastRay<T>(RaycastInput, ref T)

    Declaration
    public 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
    Implements
    IQueryable.CastRay<T>(RaycastInput, ref 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)