docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AllHitsCollector<T>

    A collector which stores every hit.

    Implements
    ICollector<T>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct AllHitsCollector<T> : ICollector<T> where T : unmanaged, IQueryResult
    Type Parameters
    Name Description
    T

    Generic type parameter.

    Constructors

    AllHitsCollector(float, ref NativeList<T>)

    Constructor.

    Declaration
    public AllHitsCollector(float maxFraction, ref NativeList<T> allHits)
    Parameters
    Type Name Description
    float maxFraction

    The maximum fraction.

    NativeList<T> allHits

    [in,out] all hits.

    Fields

    AllHits

    All hits.

    Declaration
    public NativeList<T> AllHits
    Field Value
    Type Description
    NativeList<T>

    Properties

    EarlyOutOnFirstHit

    Gets a value indicating whether the early out on first hit.

    Declaration
    public bool EarlyOutOnFirstHit { get; }
    Property Value
    Type Description
    bool

    False.

    MaxFraction

    Gets the maximum fraction.

    Declaration
    public readonly float MaxFraction { get; }
    Property Value
    Type Description
    float

    The maximum fraction.

    NumHits

    Gets the number of hits.

    Declaration
    public int NumHits { get; }
    Property Value
    Type Description
    int

    The total number of hits.

    Methods

    AddHit(T)

    Adds a hit.

    Declaration
    public bool AddHit(T hit)
    Parameters
    Type Name Description
    T hit

    The hit.

    Returns
    Type Description
    bool

    True.

    Implements

    ICollector<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)