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 Point | Left-click |
| Select Multiple Points | Ctrl + Left-click |
| Select Consecutive Points | Left-click select the first point, Shift + Left-click the last point |
| Marquee Select | Alt + Left-click Drag |
| Clear Selection | Left-click somewhere that is not a point |
| X Min and X Max | The 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 Point | Double-click + Left-click within the table bounds to add a point under the cursor |
| Delete Selection | Delete or Right-click Context Menu |
| Move Selection | Left-click Drag selection - Movement is bound by points adjacent to the selection and the table min and max |
| Edit Selected Points | All 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
| Linear | Each dot is connected by a straight line. |
| Spline | The dots are connected by Bezier curves. |
| Snap | Each dot defines one end of a step function. |
| Clamp | If 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 Max | Defines the minimum and maximum values in the table. Most tables are between 0 and 1. |
| X Min and X Max | The 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) |