docs.unity3d.com
    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>(Predicate<ISpatialObject>, Func<ISpatialObject, Single>, Action<T>, Int32, Single)

    Declaration
    void Search<T>(Predicate<ISpatialObject> predicate, Func<ISpatialObject, float> prioritizer, Action<T> onObjectMatch, int maxResultsCount = 2147483647, float nodePriorityThreshold = 3.40282347E+38F)
        where T : TObject
    Parameters
    Type Name Description
    Predicate<ISpatialObject> predicate
    Func<ISpatialObject, Single> prioritizer
    Action<T> onObjectMatch
    Int32 maxResultsCount
    Single nodePriorityThreshold
    Type Parameters
    Name Description
    T
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023