TurnBasedStrategyCourse/Library/PackageCache/com.unity.cinemachine@2.9.7/Documentation~/CinemachineVirtualCameraExt...

742 B

Extensions

Extensions are components that augment the behavior of a Virtual Camera. For example, the Collider 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 view or Hierarchy window.

  2. In the Inspector, use the Add Extension drop-down menu to choose the extension.