Skip to main content

Table Editor

A Table is a special type of decl which can be used to cheaply estimate an arbitrary function. They're useful in all kinds of situations such as setting up flickering lighting effects, adding acceleration and deceleration curves to moving entities, and other situations where values need to change over time.

Open the Table Editor by going to:

Windows → Editors → Table Editor, or directly from the Asset Browser by finding a table decl and selecting Edit in the context menu.

info

Each entry in the table decl is represented as a point on the graph.

Create a New Table Decl​

There are two ways to add a new table from the Asset Browser:

  • Duplicate an existing table decl
  • Create a new decl

Point Selection​


Select Single PointLeft-click
Select Multiple PointsCtrl + Left-click
Select Consecutive PointsLeft-click select the first point, Shift + Left-click the last point
Marquee SelectAlt + Left-click Drag
Clear SelectionLeft-click somewhere that is not a point
X Min and X MaxThe left and right bounds of the table. The difference between the two values is most frequently 1. (ex. Left = 0 and Right = 1)

Point Manipulation​


Add a New PointDouble-click + Left-click within the table bounds to add a point under the cursor
Delete SelectionDelete or Right-click Context Menu
Move SelectionLeft-click Drag selection - Movement is bound by points adjacent to the selection and the table min and max
Edit Selected PointsAll selected points values are visible in the property grid after selection, edit the values in the property grid to have the table update.

Table Properties​


LinearEach dot is connected by a straight line.
SplineThe dots are connected by Bezier curves.
SnapEach dot defines one end of a step function.
ClampIf unchecked, the table will repeat in a periodic manner. If checked, the left and right bounds will be fixed at the first and last values respectively.
Y Min and Y MaxDefines the minimum and maximum values in the table. Most tables are between 0 and 1.
X Min and X MaxThe left and right bounds of the table. The difference between the two values is most frequently 1. (ex. X Min = 0 and X Max = 1)