Railcam 2D
HomeDocsSupport
Store

FollowAxis

public enum Railcam2D.FollowAxis;

Used by Waypoints to define a camera's alignment to a target.

Value Numeric Summary
XY 0 Position the camera at the closest point to the target
X 1 Position the camera horizontally aligned with the target
Y 2 Position the camera vertically aligned with the target
Home
Docs
Support
Jonathan Madelaine © 2025
Railcam 2D
Home
Docs
Support
User Guide
Getting Started
Importing the PackageAdding to a SceneMoving the CameraCreating a RailWaypointsEffectsMore Rails
Railcam 2D Component
Inspector UI
Rail Manager Component
Inspector UI
Rail Component
Inspector UIScene UI
Custom Component Integration
Integrating with Railcam 2DCreating Rails
Settings
API Reference
CameraTarget
InfluenceXInfluenceYPositionTransform
CurveType
Effect
ActiveCameraInterpolationTargetInterpolationWaypointIndex
FollowAxis
Rail
Activate()ActiveDeactivate()EffectsWaypoints
Railcam2D
Activate()ActiveAddTarget(Transform)AddTarget(Transform, float, float)AdjustedTargetPositionClearTargets()ConnectRails()Deactivate()DisconnectRails()FindRails()Move(float)OffsetRailsConnectedRemoveTarget(Transform)SmoothTargetPositionTargetsUpdateMethodUpdateTargetPosition()
RailManager
ViewSingle
RailUtilities
GetCameraPosition(Vector2, Rail)GetCameraPosition(Vector2, Rail[])
UpdateMethod
Waypoint
CurveControlPointCurveTypeFollowAxisPosition