Table of Contents
The Rail component does not have its own Inspector UI, but is editable through the Rail Manager UI:
When a Rail is selected in the Rail Manager, the following controls are displayed:
- Active - determines whether the selected Rail is included (checked) or excluded (unchecked) from camera position calculations.
- Waypoints Tab - displays a list of the Rail's Waypoints in the editor.
- Effects Tab - displays a list of the Rail's Effects in the editor.
When the Waypoints tab is active, each Waypoint is listed with the following:
- Waypoint Index Label - the Waypoint's index.
- Follow Axis - determines the camera's alignment with its target position. See the
- Position - the 2D position of the Waypoint in the scene.
- Curve Type - determines whether this Waypoint's Rail segment is a straight line (
Linear) or a quadratic bezier curve (
Quadratic). See the
Vector2input is the Waypoint's
CurveControlPoint, which determines the position of the control point of a the curve, and is disabled if
When the Effects tab is active, each Effect is listed with the following:
- Active - determines whether the Effect is applied (checked) or not (unchecked).
- Waypoint - the index of the Waypoint to which this Effect is applied.
- Camera Pos - an interpolation value between the position of this Waypoint and the next Waypoint that determines camera position relative to Target Pos.
- Target Pos - an interpolation value between the position of this Waypoint and the next Waypoint that determines camera position relative to Camera Pos.
Railcam 2D has an intuitive Scene UI, making it easy to edit Rails without having to use the Inspector:
- Move a Waypoint - each Waypoint can be positioned by dragging its square handle.
- Create a Waypoint - The smaller squares found along each segment and at both ends of the Rail are buttons that create a new Waypoint at the relevant location.
- Delete a Waypoint - Hold the Shift key to turn a Waypoint handle into a red button that deletes the Waypoint when clicked.
- Move a Curve Control Point - If a Waypoint's
CurveTypeis set to
Quadratic, a circlular handle is rendered that can be dragged to position that Waypoint's
Hold the Left Control key (Command ⌘ key on Mac) to turn on Grid Snap which can be used when positioning and creating Waypoints. The Grid Snap value can be changed in Settings.
Each Rail is labelled with the game object's name, e.g. "Rail 0". Each Waypoint is also labelled with the Waypoint's index.
The traingular markers are read-only and show an Effect's position.