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

Attribute that automatically draws a collection as a table More...

Inheritance diagram for EditorGUITable.TableAttribute:
EditorGUITable.ReorderableTableAttribute

Public Member Functions

 TableAttribute ()
 This attribute will display the collection in a table, instead of the classic Unity list. More...
 
 TableAttribute (params string[] properties)
 This attribute will display the collection's chosen properties in a table, instead of the classic Unity list. Options can be added to a property's column by adding ":" after the property name, followed by the options separated by commas (Example: "propertyName: Option1(param), Option2(param)") More...
 
 TableAttribute (string[] properties, float[] widths, params string[] tableOptions)
 This attribute will display the collection's chosen properties in a table, with the chosen column sizes, instead of the classic Unity list. More...
 
 TableAttribute (string[] properties, params string[] tableOptions)
 This attribute will display the collection's chosen properties in a table, instead of the classic Unity list. Options can be added to a property's column by adding ":" after the property name, followed by the options separated by commas (Example: "propertyName: Option1(param), Option2(param)") More...
 

Public Attributes

string [] properties = null
 
string [] tableOptions = null
 
float [] widths = null
 

Detailed Description

Attribute that automatically draws a collection as a table

Example:

public class TableAttributeExample : MonoBehaviour {

[System.Serializable]
public class SimpleObject
{
    public string stringProperty;
    public float floatProperty;
}

[TableAttribute]
public List<SimpleObject> simpleObjects;

}

Constructor & Destructor Documentation

◆ TableAttribute() [1/4]

EditorGUITable.TableAttribute.TableAttribute ( )

This attribute will display the collection in a table, instead of the classic Unity list.

◆ TableAttribute() [2/4]

EditorGUITable.TableAttribute.TableAttribute ( params string []  properties)

This attribute will display the collection's chosen properties in a table, instead of the classic Unity list. Options can be added to a property's column by adding ":" after the property name, followed by the options separated by commas (Example: "propertyName: Option1(param), Option2(param)")

Parameters
propertiesThe properties to display in the table

◆ TableAttribute() [3/4]

EditorGUITable.TableAttribute.TableAttribute ( string []  properties,
float []  widths,
params string []  tableOptions 
)

This attribute will display the collection's chosen properties in a table, with the chosen column sizes, instead of the classic Unity list.

Parameters
propertiesThe properties to display in the table
widthsThe widths of the table's columns
tableOptionsThe table's options, in the form "OptionName(param)", separated by commas

◆ TableAttribute() [4/4]

EditorGUITable.TableAttribute.TableAttribute ( string []  properties,
params string []  tableOptions 
)

This attribute will display the collection's chosen properties in a table, instead of the classic Unity list. Options can be added to a property's column by adding ":" after the property name, followed by the options separated by commas (Example: "propertyName: Option1(param), Option2(param)")

Parameters
propertiesThe properties to display in the table
tableOptionsThe table's options, in the form "OptionName(param)", separated by commas

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