Trigger - GUI

Inspector

Trigger component in the Inspector window

Triggers can be edited in the Inspector by using the Trigger Manager component.

The Selected Rail field will only be shown when the Trigger's Event requires a Rail to be defined.

The Radius field is shown when the Shape value is Circle, the Size field is shown when the Shape value is Rectangle.

Scene

Trigger component in the Scene window

Triggers support on-scene editing with the following features:

  • The Trigger's position is represented by a central square which can be dragged to move the Trigger.
  • When the Trigger shape is a Circle, a single handle on the left can be moved horizontally to change the Trigger's Radius.
  • When the Trigger shape is a Rectangle, a handle on the left edge can be moved horizontally to change the Trigger's Size.x value, and a handle on the top edge can be moved vertically to change the Trigger's Size.y value.
  • Hold CONTROL to turn on Grid Snap. When moving the Trigger, it will snap to a grid. The resize handles will also snap to the grid, allowing accurate resizing of the Trigger. Grid size can be changed by going to Edit > Preferences > Railcam 2D > Grid Snap.