docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindAllPathsToLeafNodes

    FindAllPathsToLeafNodes(T)

    Finds all paths from the start node to any leaf node.

    Declaration
    public List<List<T>> FindAllPathsToLeafNodes(T startNode)
    Parameters
    Type Name Description
    T startNode

    The node to start from.

    Returns
    Type Description
    List<List<T>>

    A list of paths, where each path is a list of nodes.

    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)