docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TreeListFlattenOptions<T>

    What Flatten<T>(TreeListFlattenOptions<T>) reads a lazily loaded tree through.

    Inheritance
    object
    TreeListFlattenOptions<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class TreeListFlattenOptions<T>
    Type Parameters
    Name Description
    T

    The caller's item type.

    Properties

    getChildren

    The loaded children of a parent, null being the top level. Returning null means the level has not been loaded, and it is drawn as a placeholder. Required.

    Declaration
    public Func<string, IReadOnlyList<T>> getChildren { get; set; }
    Property Value
    Type Description
    Func<string, IReadOnlyList<T>>

    getId

    The id of an item. Required.

    Declaration
    public Func<T, string> getId { get; set; }
    Property Value
    Type Description
    Func<T, string>

    hasChildren

    Whether the item has children to disclose, loaded or not. Required.

    Declaration
    public Func<T, bool> hasChildren { get; set; }
    Property Value
    Type Description
    Func<T, bool>

    isExpanded

    Whether the row with this id is open. Required.

    Declaration
    public Func<string, bool> isExpanded { get; set; }
    Property Value
    Type Description
    Func<string, bool>

    isPending

    An open parent whose children should not be listed because they are about to be replaced. It gets a placeholder and is not reported as a level to load. Optional.

    Declaration
    public Func<T, bool> isPending { get; set; }
    Property Value
    Type Description
    Func<T, bool>

    pendingCount

    How many more children a loaded level has that have not arrived yet. Each is drawn as a one-row placeholder after the loaded children. Defaults to none. Optional.

    Declaration
    public Func<string, int> pendingCount { get; set; }
    Property Value
    Type Description
    Func<string, int>

    placeholderCount

    How many rows a placeholder for this parent stands in for (the parent is default for the top level). Defaults to 1. Optional.

    Declaration
    public Func<T, int> placeholderCount { get; set; }
    Property Value
    Type Description
    Func<T, int>
    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)