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>
    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()

    Fields

    k_InitialColumns

    Declaration
    protected const int k_InitialColumns = 2
    Field Value
    Type Description
    System.Int32

    Properties

    Keys

    Declaration
    public KeyDatabase Keys { get; }
    Property Value
    Type Description
    KeyDatabase

    NewKey

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

    TableName

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

    Tables

    Declaration
    public List<T1> Tables { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.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
    System.Collections.Generic.IList<TreeViewItem>

    CanMultiSelect(TreeViewItem)

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

    CreateTreeViewItem(Int32, KeyDatabase.KeyDatabaseEntry)

    Declaration
    protected virtual T2 CreateTreeViewItem(int index, KeyDatabase.KeyDatabaseEntry keyEntry)
    Parameters
    Type Name Description
    System.Int32 index
    KeyDatabase.KeyDatabaseEntry keyEntry
    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, GenericAssetTableListView<T1, T2>.TableColumn, T2)

    Declaration
    protected abstract void DrawItemField(Rect cellRect, int colIdx, GenericAssetTableListView<T1, T2>.TableColumn col, T2 item)
    Parameters
    Type Name Description
    Rect cellRect
    System.Int32 colIdx
    GenericAssetTableListView.TableColumn<> col
    T2 item

    DrawKeyField(Rect, T2)

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

    DrawKeyIdField(Rect, T2)

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

    DrawMissingTableField(Rect, Int32, GenericAssetTableListView<T1, T2>.MissingTableColumn)

    Declaration
    protected virtual void DrawMissingTableField(Rect cellRect, int colIdx, GenericAssetTableListView<T1, T2>.MissingTableColumn col)
    Parameters
    Type Name Description
    Rect cellRect
    System.Int32 colIdx
    GenericAssetTableListView.MissingTableColumn<> col

    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

    Finalize()

    Declaration
    protected void Finalize()

    Initialize()

    Declaration
    public virtual void Initialize()

    InitializeColumns()

    Declaration
    protected virtual void InitializeColumns()

    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