Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Documentation~/CinemachineVirtualCameraExt...

13 lines
742 B
Markdown
Raw Normal View History

2023-03-28 13:24:16 -04:00
# Extensions
Extensions are components that augment the behavior of a Virtual Camera. For example, the [Collider](CinemachineCollider.md) extension moves a camera out of the way of GameObjects that obstruct the cameras view of its target.
Cinemachine includes a variety of extensions. Create your own custom extensions by deriving from the `CinemachineExtension` class.
To add an extension to a Virtual Camera:
1. Select your Virtual Camera in the [Scene](https://docs.unity3d.com/Manual/UsingTheSceneView.html) view or [Hierarchy](https://docs.unity3d.com/Manual/Hierarchy.html) window.
2. In the [Inspector](https://docs.unity3d.com/Manual/UsingTheInspector.html), use the __Add Extension__ drop-down menu to choose the extension.