Rail - GUI
Rails can be edited in the Inspector by using the Rail Manager component.
The editor has fields for Target, Orientation, and the Lead-In and Trail-Out effects. The editor also features a Rail Node editor. Each Node is listed in a row with the following columns:
- Node # - The Node's index.
- Position - A Vector2 representing the Node's position in 2D space.
- FX: Threshold - A float field for the Node's Threshold value, and a checkbox to invert the effect. Note that the final Node's FX: Threshold fields are disabled as they have no effect.
- Control Buttons - buttons that shift a Node up the list (▲), down the list (▼), insert a new Node at the position (+), or remove the relevant Node (−).
There is also a large button (+) beneath the list that adds a new Node to the end.
Rails support on-scene editing with the following features:
- Rail Nodes are represented by numbered squares. These can be dragged to change the Node position in the scene and alter the Rail's path.
- Segment Insert Buttons are located at the midpoint between each pair of Nodes. Click these to insert new Rail Nodes at these positions.
- End Point Insert Buttons are located at the ends of the Rail. Click these to insert new Rail Nodes at the start or end of the Rail.
- Hold SHIFT to turn on Node Removal Mode. All Rail Nodes will turn to red squares. Click these to delete the relevant Nodes. All Rails must have at least 2 Nodes. If there are only 2 Nodes, they can not be removed.
- Hold CONTROL to turn on Grid Snap. When moving Nodes, they will snap to a grid. End Point Insert Buttons will also snap to the grid so that when they are clicked, the new Nodes will be positioned accurately. Grid size can be changed by going to Edit > Preferences > Railcam 2D > Grid Snap.