Class GenericAssetTableListView<T1, T2> | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class GenericAssetTableListView<T1, T2>

    Inheritance
    System.Object
    GenericAssetTableListView<T1, T2>
    LocalizedAssetTableListView<T>
    StringTableListView
    Namespace: UnityEditor.Localization
    Syntax
    public abstract class GenericAssetTableListView<T1, T2> : TreeView where T1 : LocalizedTable where T2 : GenericAssetTableTreeViewItem, new ()
    Type Parameters
    Name Description
    T1
    T2

    Constructors

    GenericAssetTableListView()

    Declaration
    protected GenericAssetTableListView()

    Properties

    NewKey

    Declaration
    protected string NewKey { get; set; }
    Property Value
    Type Description
    System.String

    Tables

    Declaration
    public List<T1> Tables { get; set; }
    Property Value
    Type Description
    List<T1>

    totalHeight

    Declaration
    public virtual float totalHeight { get; }
    Property Value
    Type Description
    System.Single

    Methods

    AddNewKey(String)

    Declaration
    protected virtual void AddNewKey(string key)
    Parameters
    Type Name Description
    System.String key

    BuildRoot()

    Declaration
    protected override TreeViewItem BuildRoot()
    Returns
    Type Description
    TreeViewItem

    BuildRows(TreeViewItem)

    Declaration
    protected override IList<TreeViewItem> BuildRows(TreeViewItem root)
    Parameters
    Type Name Description
    TreeViewItem root
    Returns
    Type Description
    IList<TreeViewItem>

    CanMultiSelect(TreeViewItem)

    Declaration
    protected override bool CanMultiSelect(TreeViewItem item)
    Parameters
    Type Name Description
    TreeViewItem item
    Returns
    Type Description
    System.Boolean

    CreateTreeViewItem(Int32, String)

    Declaration
    protected virtual T2 CreateTreeViewItem(int index, string itemKey)
    Parameters
    Type Name Description
    System.Int32 index
    System.String itemKey
    Returns
    Type Description
    T2

    DoesItemMatchSearch(TreeViewItem, String)

    Declaration
    protected override bool DoesItemMatchSearch(TreeViewItem item, string search)
    Parameters
    Type Name Description
    TreeViewItem item
    System.String search
    Returns
    Type Description
    System.Boolean

    DrawItemField(Rect, Int32, T2, T1)

    Declaration
    protected abstract void DrawItemField(Rect cellRect, int col, T2 item, T1 table)
    Parameters
    Type Name Description
    Rect cellRect
    System.Int32 col
    T2 item
    T1 table

    DrawKeyField(Rect, T2)

    Declaration
    protected virtual void DrawKeyField(Rect cellRect, T2 keyItem)
    Parameters
    Type Name Description
    Rect cellRect
    T2 keyItem

    DrawNewKeyField(Rect)

    Draws a field for adding a new key.

    Declaration
    protected virtual void DrawNewKeyField(Rect cellRect)
    Parameters
    Type Name Description
    Rect cellRect

    DrawSearchField(Rect)

    Declaration
    protected virtual Rect DrawSearchField(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    Rect

    Initialize()

    Declaration
    public virtual void Initialize()

    InitializeColumns()

    Declaration
    protected virtual void InitializeColumns()

    IsKeyUsed(String)

    Is the key already used in one or more of the tables?

    Declaration
    public bool IsKeyUsed(string key)
    Parameters
    Type Name Description
    System.String key
    Returns
    Type Description
    System.Boolean

    OnGUI(Rect)

    Declaration
    public override void OnGUI(Rect rect)
    Parameters
    Type Name Description
    Rect rect

    RowGUI(RowGUIArgs)

    Declaration
    protected override void RowGUI(RowGUIArgs args)
    Parameters
    Type Name Description
    RowGUIArgs args
    Back to top
    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