8.3 KiB
Samples and tutorials
Several sample scenes and video tutorials are available in addition to this documentation to demonstrate how to use the Cinemachine features in real-world scenarios.
Sample scenes
The Cinemachine package includes sample scenes that you can import to your project to discover many Cinemachine features in different contexts of use.
2D Samples
Once you import the 2D Samples set, the following scenes are available in the Assets/Samples/Cinemachine/<version number>/2D Samples folder.
| Sample scene | Use cases and key features |
|---|---|
| 2D Fighters |
|
| 2D Platformer |
|
| Camera Magnets |
|
3D Samples
Once you import the 3D Samples set, the following scenes are available in the Assets/Samples/Cinemachine/<version number>/3D Samples folder.
| Sample scene | Use cases and key features |
|---|---|
| Brain Update Modes |
|
| Clear Shot |
|
| Cutscene |
|
| Early LookAt Custom Blend |
|
| Fly around |
|
| FreeLook Deoccluder |
|
| FreeLook on Spherical Surface |
|
| Impulse Wave |
|
| Lock-on Target |
|
| Mixing Camera |
|
| Perspective To Ortho Custom Blend |
|
| Portals |
|
| Running Race |
|
| Split Screen Car |
|
| Third Person With Aim Mode |
|
| Third Person With Roadie Run |
|
Input System Samples
Once you import the Input System Samples set, the following scene is available in the Assets/Samples/Cinemachine/<version number>/Input System Samples folder.
| Sample scene | Use cases and key features |
|---|---|
| Split Screen Multiplayer |
|
Simple Player Controller
Several of the samples listed above make use of Cinemachine's Simple Player Controller, a basic but versatile player controller that you can use in your own projects. It is a suite of scripts that you can combine and configure to create character controllers which you can use in different contexts to implement several types of character movement.
Tutorials
Note
This section links to videos that were made with a previous version of Cinemachine. You might notice a few changes in the interface and the naming of some elements, but all the explained concepts and shown functionality still apply to the latest Cinemachine version.
A "Using Cinemachine" series of video tutorials is available online in Unity's official YouTube channel. Discover various Cinemachine use cases and watch the immediate effects resulting from the corresponding project setup.
| Video | Description |
|---|---|
| Getting Started | Keep a camera focused on a Transform and follow it as it moves around in the Scene. |
| Track & Dolly | Track targets by setting paths for the Cinemachine Cameras to move between. |
| State Driven Cameras | Link Cinemachine Cameras to animation states and further customize their behavior in the Scene. |
| Free Look | Create an orbital camera system with input from the player and maintain control of the camera composition at different orbit stages. |
| Clear Shot | Dynamically cut between Cinemachine Cameras in the Scene as a tracked target is occluded. |
| Post Processing | With the addition of the post-processing stack, Cinemachine allows to blend easily between different effects on the cameras or in the Scene. |
| Cinemachine 2D | Use Cinemachine composition tools with an orthographic virtual camera in a 2D Project. |