Effect
public class Railcam2D.Effect;
Allows the displacement of the camera's position along a Rail.
Public Members
Active
public bool Active = true;
Member | Field |
Type | bool |
Defaults To | true |
A bool
that determines whether the Effect is applied (true
) or not (false
).
CameraInterpolation
[RangeAttribute(0f, 1f)]
public float CameraInterpolation = 0.5f;
Member | Field |
Type | float |
Defaults To | 0.5f |
Min | 0f |
Max | 1f |
A float
that represents an interpolation value between two Waypoint positions on a Rail.
A value of 0f
is equivalent to the position of the Waypoint defined by WaypointIndex
. A value of 1f
is equivalent to the position of the next Waypoint.
The camera is positioned at the point defined by this value when the camera's target position is at the point defined by TargetInterpolation
.
TargetInterpolation
[RangeAttribute(0f, 1f)]
public float TargetInterpolation = 0.25f;
Member | Field |
Type | float |
Defaults To | 0.25f |
Min | 0f |
Max | 1f |
A float
that represents an interpolation value between two Waypoint positions on a Rail.
A value of 0f
is equivalent to the position of the Waypoint defined by WaypointIndex
. A value of 1f
is equivalent to the position of the next Waypoint.
When the camera's target position is at this point, the camera is positioned at the point defined by CameraInterpolation
.
WaypointIndex
public int WaypointIndex = -1;
Member | Field |
Type | int |
Defaults To | -1 |
An int
that determines the index of the Waypoint in a Rail's list of Waypoints. This effect is applied to the Rail segment starting at this Waypoint and ending at the next Waypoint.
A value of -1
means the Effect is not applied to any Waypoint.