docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TreeListDragPayload

    What a TreeList drag carries.

    Inheritance
    object
    TreeListDragPayload
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public sealed class TreeListDragPayload
    Remarks

    UITK drags do not carry a MIME-typed data transfer the way the DOM does, so the web implementation's private application/x-appui-tree-item type is expressed here as a typed payload instead. A foreign drop target that is handed one of these can identify a tree row by its type — or by mimeType when it bridges to a string-keyed protocol — rather than guessing from a bare id string.

    Properties

    items

    The rows being dragged, in selection priority order. Index 0 is the row the pointer grabbed.

    Declaration
    public IReadOnlyList<TreeViewItem> items { get; }
    Property Value
    Type Description
    IReadOnlyList<TreeViewItem>

    mimeType

    The MIME type a tree-row drag publishes itself under, mirroring the web registry's TREE_ITEM_MIME.

    Declaration
    public string mimeType { get; }
    Property Value
    Type Description
    string

    source

    The tree the drag started in.

    Declaration
    public TreeList source { get; }
    Property Value
    Type Description
    TreeList
    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)