TableGUI Class

Summary

[Editor-Only] Utility for drawing tables.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Object
Derived Types
graph BT Type-->Base0["Object"] Type["TableGUI"] class Type type-node Derived0["TransitionModifierTableGUI"]-->Type click Derived0 "/animancer/api/Animancer.Editor.TransitionLibraries/TransitionModifierTableGUI"

Syntax

[Serializable]
public class TableGUI

Attributes

Type Description
SerializableAttribute

Fields

Name Constant Value Summary
DoCellGUI
Draws the GUI for a specified cell.

Properties

Name Value Summary
CalculateWidestLabel Func<float>
A delegate to calculate the largest pixel width of the header labels.
HorizontalScrollBar GUIStyle
The style for the horizontal scroll bar.
static
LabelSize Vector2
[UnityEngine.SerializeField] The normalized size of the header labels.
MaxCellSize Vector2
The maximum pixel size of each cell.
MinCellSize Vector2
The minimum pixel size of each cell.
Padding float
The pixel spacing between cells.
static
ScrollPosition Vector2
[UnityEngine.SerializeField] The position the table is currently scrolled to.
VerticalScrollBar GUIStyle
The style for the vertical scroll bar.
static

Methods

Name Value Summary
CalculateSizes(Rect, int, int, Vector2, Vector2) void
Calculates the current label and cell sizes for the given `area`.
DoTableGUI(Rect, int, int) void
Draws this table.