Version 3.3.1.2

Odin has a dedicated attribute overview with examples

TableListAttribute class

Namespace: Sirenix.OdinInspector
Assembly: Sirenix.OdinInspector.Attributes
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false)]
[Conditional("UNITY_EDITOR")]
public class TableListAttribute : Attribute, _Attribute
Renders lists and arrays in the inspector as tables.
Inheritance
  • System.Object
  • System.Attribute
  • TableListAttribute

Constructors

TableListAttribute()
public TableListAttribute()

Fields

AlwaysExpanded
If true, expanding and collapsing the table from the table title-bar is no longer an option.
public bool AlwaysExpanded
CellPadding
The cell padding.
public int CellPadding
DefaultMinColumnWidth
The default minimum column width - 40 by default. This can be overwriten by individual columns using the TableColumnWidthAttribute.
public int DefaultMinColumnWidth
DrawScrollView
Whether to draw all rows in a scroll-view.
public bool DrawScrollView
HideToolbar
Whether to hide the toolbar containing the add button and pagin etc.s
public bool HideToolbar
IsReadOnly
Mark the table as read-only. This removes all editing capabilities from the list such as Add and delete, but without disabling GUI for each element drawn as otherwise would be the case if the ReadOnlyAttribute was used.
public bool IsReadOnly
MaxScrollViewHeight
The number of pixels before a scroll view appears. 0 by default.
public int MaxScrollViewHeight
MinScrollViewHeight
The number of pixels before a scroll view appears. 350 by default.
public int MinScrollViewHeight
NumberOfItemsPerPage
If ShowPaging is enabled, this will override the default setting specified in the Odin Preferences window.
public int NumberOfItemsPerPage
ShowIndexLabels
If true, a label is drawn for each element which shows the index of the element.
public bool ShowIndexLabels

Properties

ScrollViewHeight
Sets the Min and Max ScrollViewHeight.
public int ScrollViewHeight { get; set; }
ShowPaging
Whether paging buttons should be added to the title bar. The default value of this, can be customized from the Odin Preferences window.
public bool ShowPaging { get; set; }
ShowPagingHasValue
Whether the ShowPaging property has been set.
public bool ShowPagingHasValue { get; }