Railcam 2D
Store

Rail Component

Table of Contents


Inspector UI

The Rail component does not have its own Inspector UI, but is editable through the Rail Manager UI:

Inspector UI Rail Manager Rail

When a Rail is selected in the Rail Manager, the following controls are displayed:

Inspector UI Rail

  • 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:

Inspector UI Rail Waypoint

  • Waypoint Index Label - the Waypoint's index.
  • Follow Axis - determines the camera's alignment with its target position. See the FollowAxis documentation.
  • 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 CurveType documentation. The Vector2 input is the Waypoint's CurveControlPoint, which determines the position of the control point of a the curve, and is disabled if CurveType is Linear.

When the Effects tab is active, each Effect is listed with the following:

Inspector UI Rail Effect

  • 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.

Scene UI

Railcam 2D has an intuitive Scene UI, making it easy to edit Rails without having to use the Inspector:

Scene UI Rail

  • 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 CurveType is set to Quadratic, a circlular handle is rendered that can be dragged to position that Waypoint's CurveControlPoint.

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.

Jonathan Madelaine © 2020