Editor GUI Table
2.3
Allows programmers to easily create customizable tables in Unity Editor
|
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...
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 () |
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.
EditorGUITable.TableColumn.TableColumn | ( | params TableColumnOption [] | options | ) |
Initializes a column with its title and options. Edit the other public properties for more settings.
options | The column options. |
EditorGUITable.TableColumn.TableColumn | ( | string | title, |
params TableColumnOption [] | options | ||
) |
Initializes a column with its title and options. Edit the other public properties for more settings.
title | The column title. |
options | The column options. |
|
static |
If false
, the cells for this columns will be disabled (so not interactable).
|
static |
If false
, the title cell for this columns will be disabled (so not interactable).
|
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
|
static |
Sets the maximum width of the column that the user can manually resize it to.
|
static |
Sets the minimum width of the column that the user can manually resize it to.
|
static |
If true
, the user will be able to hide or show this column by right-clicking on the titles area.
|
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.
|
static |
If true
, the user will be able to resize this column by dragging the right edge of the title cell.
|
static |
If true
, the user will be able to sort the table by this column by clicking on the title.
|
static |
Sets the title for this column.
|
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.
|
static |
Sets the default width of the column.