docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindPathAndLeaves

    FindPathAndLeaves(T, out HashSet<T>, out HashSet<T>)

    Finds nodes along paths from the starting node and the leaf nodes reached.

    Declaration
    public void FindPathAndLeaves(T node, out HashSet<T> path, out HashSet<T> leaves)
    Parameters
    Type Name Description
    T node

    The node to start from.

    HashSet<T> path

    Outputs the nodes along the traversed paths.

    HashSet<T> leaves

    Outputs the leaf nodes that were reached.

    In This Article
    Back to top
    Copyright © 2026 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)