Railcam 2D
An intuitive 2D / 2.5D camera path plug-in for Unity

Railcam 2D is a camera plug-in that gives developers effective control of camera movement while retaining the characteristics of a target-following camera.

Rail components are used to limit the camera to specific paths through a scene, with built-in Transition Effects bringing a professional touch to any level.

Trigger components enable dynamic switching between multiple Rails during gameplay and can be used as Generic Triggers for your own custom Events.

It's not all about the Rails either, as Railcam 2D's Core component functions as a free moving, target-following camera!

Both orthographic and perspective cameras are supported, meaning any 2D or 2.5D game can benefit from Railcam 2D.

Unique Manager components allow easy access and quick editing when working with multiple Rails and Triggers, and are just one part of an interface built with a heavy focus on usability.

With a lightweight design, an intuitive user interface, and a level of control rarely seen in other camera assets, Railcam 2D is a valuable tool in any 2D / 2.5D game developer's arsenal!

Try out the Railcam 2D Demo!

Rail component Horizontal and Vertical Orientation

Why Rails?

Rails prevent free movement along all but one axis. This allows full control over the position of a camera at any point in a level. If the exact path that a camera will travel is known, the camera's movement can be manipulated along that path.

Rails enable a developer to accomplish all kinds of things. Preventing camera movement along certain axes and limiting the camera to specific areas of a scene are two obvious abilities that focus on restricting camera movement. Rails also provide a way for developers to create more expressive camera movement.

Camera movement can be moved vertically as the player moves horizontally, exposing the player to parts of the level they may not have seen, points of interest can receive more time on screen, and suggestive camera movement can give hints on how to proceed. Inbuilt transition effects allow the camera to move ahead or lag behind the player, meaning areas can be revealed early, or left until the last second.

Railcam 2D features the ability to create multiple Rails and switch between them during gameplay, meaning large and dynamic Rail systems can be built - get creative!

Benefits

Intuitive

Railcam 2D's user interface is clean and informative. Descriptive scene GUI and unique features such as component management create a more productive design environment.

Optimized

Fast and efficient, Railcam 2D was developed from square one with a focus on having minimal overhead and the smallest possible footprint.

Non-Coder Friendly

Access all of Railcam 2D's main functionality from the Inspector, without ever having to write a line of code.

Transition Effects

Use a Rail's inbuilt transition effects to maximize camera control and create meaningful changes to camera movement at specific points in a scene.

Customizable

Total source code access and an extensive use of comments means you can easily tweak Railcam 2D to satisfy unique project requirements.

How It Works

Core

The Railcam2DCore component provides the main functionality of Railcam 2D. It is responsible for camera movement and connects all the other components in the Asset. It functions as a free-moving target-following camera, but can connect the camera to Rails at any time during gameplay. Add this to the camera object you want to manipulate.

Rails

Rail components are paths through a scene that the camera moves along. When the camera is connected to a Rail, the Core uses the Rail to calculate camera position.

Triggers

Trigger components are areas of the scene that initiate an event when a target is detected. The Core uses Triggers to control the camera's Rail connections, but Triggers can also be set to Generic and used for custom Events.