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

Base class for all table cells. DrawCell needs to be overriden to draw the cell. Use this to customize the table however needed. CompareTo can be overriden to customize the sorting. comparingValue is used as a fallback for sorting any types of cells, even different types. More...

Inheritance diagram for EditorGUITable.TableCell:
EditorGUITable.ActionCell EditorGUITable.LabelCell EditorGUITable.ObjectCell EditorGUITable.PropertyCell

Public Member Functions

abstract void DrawCell (Rect rect)
 Draws the cell using GUI (without GUILayout). More...
 
virtual int CompareTo (object other)
 

Static Public Member Functions

static string GetPropertyValueAsString (SerializedProperty sp)
 
static int CompareTwoSerializedProperties (SerializedProperty sp1, SerializedProperty sp2)
 

Properties

abstract string comparingValue [get]
 

Detailed Description

Base class for all table cells. DrawCell needs to be overriden to draw the cell. Use this to customize the table however needed. CompareTo can be overriden to customize the sorting. comparingValue is used as a fallback for sorting any types of cells, even different types.

Member Function Documentation

◆ DrawCell()

abstract void EditorGUITable.TableCell.DrawCell ( Rect  rect)
pure virtual

Draws the cell using GUI (without GUILayout).

Parameters
rectRect.

Implemented in EditorGUITable.PropertyCell, EditorGUITable.LabelCell, EditorGUITable.ObjectCell, and EditorGUITable.ActionCell.


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