Trigger - Variables
The Target the Trigger detects.
If null, the Target of the Railcam2DCore component is used by default. Only assign a value if you want the Trigger to detect a different object to the Railcam 2D Target.
The Event that occurs when the Trigger detects its Target.
An enum with a choice of "Connect To Selected Rail", "Disconnect From Selected Rail",
"Disconnect From All Rails" or "Generic".
The inbuilt Events revolve around managing the camera's Rail connections.
To use the Trigger for custom Events, set the Event to Generic and check for
The Rail the Trigger's Event refers to.
The time in seconds the Trigger waits between each scan for the Target.
To avoid multiple Triggers scanning on the same frame (to reduce load), this value is randomly offset by up to 0.05s each time a scan occurs. A lower scanning frequency also helps to reduce load. If you have a fast-moving Target, consider using a smaller value to increase the scan frequency.
Determines if the Trigger starts the scene scanning for the Target.
Activate or deactivate the Trigger during runtime by calling the
The shape of the Trigger's detection area.
The position of the Trigger in a scene.
The radius of the Trigger's detection area when Shape is set to Circle.
The height and width of the Trigger's detection area when Shape is set to Rectangle.