Editor GUI Table  2.3
Allows programmers to easily create customizable tables in Unity Editor
EditorGUITable.TableColumn Class Reference

Base class for all table columns. It only takes a title and a width in the constructor, but other settings are available to customize the column. More...

Inheritance diagram for EditorGUITable.TableColumn:
EditorGUITable.SelectorColumn EditorGUITable.SelectFromCellTypeColumn EditorGUITable.SelectFromFunctionColumn EditorGUITable.SelectFromPropertyNameColumn EditorGUITable.SelectObjectReferenceColumn

Public Member Functions

 TableColumn (params TableColumnOption[] options)
 Initializes a column with its title and options. Edit the other public properties for more settings. More...
 
 TableColumn (string title, params TableColumnOption[] options)
 Initializes a column with its title and options. Edit the other public properties for more settings. More...
 
 TableColumn (string title, float width, params TableColumnOption[] options)
 
float GetDefaultWidth ()
 

Static Public Member Functions

static TableColumnOption MinWidth (float value)
 Sets the minimum width of the column that the user can manually resize it to. More...
 
static TableColumnOption MaxWidth (float value)
 Sets the maximum width of the column that the user can manually resize it to. More...
 
static TableColumnOption Width (float value)
 Sets the default width of the column. More...
 
static TableColumnOption Relative (bool value=true)
 If true, the Width value will be relative to the containing view, instead of absolute (0.5 means 50% of the containing view, etc). Relative columns will automatically resize with the containing view. More...
 
static TableColumnOption Resizeable (bool value)
 If true, the user will be able to resize this column by dragging the right edge of the title cell. More...
 
static TableColumnOption Sortable (bool value)
 If true, the user will be able to sort the table by this column by clicking on the title. More...
 
static TableColumnOption EnabledTitle (bool value)
 If false, the title cell for this columns will be disabled (so not interactable). More...
 
static TableColumnOption EnabledCells (bool value)
 If false, the cells for this columns will be disabled (so not interactable). More...
 
static TableColumnOption Optional (bool value)
 If true, the user will be able to hide or show this column by right-clicking on the titles area. More...
 
static TableColumnOption VisibleByDefault (bool value)
 If false and Optional is true, the column will be hidden by default, and shown only if the user right-clicks on the title area and selects this column. More...
 
static TableColumnOption Title (string value)
 Sets the title for this column. More...
 
static TableColumnOption IgnoreAttributes (bool value)
 If true, all attributes declared above this field will be ignored. This can be used to avoid issues when drawing fields with decorator attributes like [Header]... in the table. This option will not work on properties of type: Quaternion, LayerMask, AnimationCurve and Gradient More...
 

Public Attributes

TableColumnEntry entry
 

Protected Member Functions

void InitEntry (params TableColumnOption[] options)
 
virtual string GetDefaultTitle ()
 

Detailed Description

Base class for all table columns. It only takes a title and a width in the constructor, but other settings are available to customize the column.

Constructor & Destructor Documentation

◆ TableColumn() [1/2]

EditorGUITable.TableColumn.TableColumn ( params TableColumnOption []  options)

Initializes a column with its title and options. Edit the other public properties for more settings.

Parameters
optionsThe column options.

◆ TableColumn() [2/2]

EditorGUITable.TableColumn.TableColumn ( string  title,
params TableColumnOption []  options 
)

Initializes a column with its title and options. Edit the other public properties for more settings.

Parameters
titleThe column title.
optionsThe column options.

Member Function Documentation

◆ EnabledCells()

static TableColumnOption EditorGUITable.TableColumn.EnabledCells ( bool  value)
static

If false, the cells for this columns will be disabled (so not interactable).

◆ EnabledTitle()

static TableColumnOption EditorGUITable.TableColumn.EnabledTitle ( bool  value)
static

If false, the title cell for this columns will be disabled (so not interactable).

◆ IgnoreAttributes()

static TableColumnOption EditorGUITable.TableColumn.IgnoreAttributes ( bool  value)
static

If true, all attributes declared above this field will be ignored. This can be used to avoid issues when drawing fields with decorator attributes like [Header]... in the table. This option will not work on properties of type: Quaternion, LayerMask, AnimationCurve and Gradient

◆ MaxWidth()

static TableColumnOption EditorGUITable.TableColumn.MaxWidth ( float  value)
static

Sets the maximum width of the column that the user can manually resize it to.

◆ MinWidth()

static TableColumnOption EditorGUITable.TableColumn.MinWidth ( float  value)
static

Sets the minimum width of the column that the user can manually resize it to.

◆ Optional()

static TableColumnOption EditorGUITable.TableColumn.Optional ( bool  value)
static

If true, the user will be able to hide or show this column by right-clicking on the titles area.

◆ Relative()

static TableColumnOption EditorGUITable.TableColumn.Relative ( bool  value = true)
static

If true, the Width value will be relative to the containing view, instead of absolute (0.5 means 50% of the containing view, etc). Relative columns will automatically resize with the containing view.

◆ Resizeable()

static TableColumnOption EditorGUITable.TableColumn.Resizeable ( bool  value)
static

If true, the user will be able to resize this column by dragging the right edge of the title cell.

◆ Sortable()

static TableColumnOption EditorGUITable.TableColumn.Sortable ( bool  value)
static

If true, the user will be able to sort the table by this column by clicking on the title.

◆ Title()

static TableColumnOption EditorGUITable.TableColumn.Title ( string  value)
static

Sets the title for this column.

◆ VisibleByDefault()

static TableColumnOption EditorGUITable.TableColumn.VisibleByDefault ( bool  value)
static

If false and Optional is true, the column will be hidden by default, and shown only if the user right-clicks on the title area and selects this column.

◆ Width()

static TableColumnOption EditorGUITable.TableColumn.Width ( float  value)
static

Sets the default width of the column.


The documentation for this class was generated from the following file: