docs.unity.cn
    Show / Hide Table of Contents

    Interface ISpatialCollection<TObject>

    Namespace: Unity.Reflect.Collections
    Syntax
    public interface ISpatialCollection<TObject> : IDisposable
    Type Parameters
    Name Description
    TObject

    Properties

    Bounds

    Declaration
    Bounds Bounds { get; }
    Property Value
    Type Description
    Bounds

    Depth

    Declaration
    int Depth { get; }
    Property Value
    Type Description
    Int32

    ObjectCount

    Declaration
    int ObjectCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    Add(TObject)

    Declaration
    void Add(TObject obj)
    Parameters
    Type Name Description
    TObject obj

    DrawDebug(Gradient, Gradient, Single, Int32)

    Declaration
    void DrawDebug(Gradient nodeGradient, Gradient objectGradient, float maxPriority, int maxDepth)
    Parameters
    Type Name Description
    Gradient nodeGradient
    Gradient objectGradient
    Single maxPriority
    Int32 maxDepth

    Remove(TObject)

    Declaration
    void Remove(TObject obj)
    Parameters
    Type Name Description
    TObject obj

    Search<T>(Func<TObject, Boolean>, Func<TObject, Single>, Int32, ICollection<T>)

    Declaration
    void Search<T>(Func<TObject, bool> predicate, Func<TObject, float> prioritizer, int maxResultsCount, ICollection<T> results)
        where T : TObject
    Parameters
    Type Name Description
    Func<TObject, Boolean> predicate
    Func<TObject, Single> prioritizer
    Int32 maxResultsCount
    ICollection<T> results
    Type Parameters
    Name Description
    T
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 26 April 2021