docs.unity.cn
    Show / Hide Table of Contents

    Struct AllHitsCollector<T>

    Namespace: Unity.Physics
    Syntax
    public struct AllHitsCollector<T> : ICollector<T> where T : struct, IQueryResult
    Type Parameters
    Name Description
    T

    Constructors

    AllHitsCollector(Single, ref NativeList<T>)

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

    Fields

    AllHits

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

    Properties

    EarlyOutOnFirstHit

    Declaration
    public readonly bool EarlyOutOnFirstHit { get; }
    Property Value
    Type Description
    Boolean
    Implements
    ICollector<T>.EarlyOutOnFirstHit

    MaxFraction

    Declaration
    public readonly float MaxFraction { get; }
    Property Value
    Type Description
    Single
    Implements
    ICollector<T>.MaxFraction

    NumHits

    Declaration
    public readonly int NumHits { get; }
    Property Value
    Type Description
    Int32
    Implements
    ICollector<T>.NumHits

    Methods

    AddHit(T)

    Declaration
    public bool AddHit(T hit)
    Parameters
    Type Name Description
    T hit
    Returns
    Type Description
    Boolean
    Implements
    ICollector<T>.AddHit(T)
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Tuesday, April 26, 2022
    Terms of use