# Camera Custom Cinemachine Upgrade

{% file src="<https://1613353771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fygjewtla1W7kzTTIpGWq%2Fuploads%2FDN7vWhrFZ2NwNAu7HxDL%2FCamera%20Custom%20Cinemachine%20Upgrade%20v1.0.2%20(PrimeTween%20and%20Cinemachine%20v3).unitypackage?alt=media&token=beae8a5a-5eb3-46a2-a6fc-53039f926e0e>" %}
Use for Cinemachine version 3.x.x and Prime Tween
{% endfile %}

{% file src="<https://1613353771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fygjewtla1W7kzTTIpGWq%2Fuploads%2FhWhszCdNIV1Cjo8llPOe%2FCamera%20Custom%20Cinemachine%20Upgrade%20v1.0.1.unitypackage?alt=media&token=ff189aea-dfc4-4909-8a5c-cf88d9baf0ba>" %}
Use for Cinemachine version 2.x.x and DOTween
{% endfile %}

## What for

If you want to keep built in [***Camera Custom***](https://reddycat.gitbook.io/base-project-cube-doc/fundamentals/other-modules/camera-follower) and have Cinemachine functionality (use virtual cameras and etc). This package provides adaptors to use both.

## Integration

{% hint style="warning" %}
Use v1.0.1 for DOTween and Cinemachine version 2.x.x

Use v1.0.2 for PrimeTween and Cinemachine version 3.x.x
{% endhint %}

1. Import Cinemachine from Unity Package manager (Unity Registry).
2. Import Camera Custom Cinemachine Upgrade package;
3. If you have errors within \_Examples folder - remove or [update it](https://reddycat.gitbook.io/base-project-cube-doc/base-project-cube);
4. In scenes, where you want to use Cinemachine, you need:
   1. Add CameraHolder prefab to scene (Create object/Core Prefabs/Camera Holder);
   2. Unpack added prefab, copy settings from old CameraHolder (POVs, follow logic) and paste to created CameraHolder;
   3. Unparent Main Camera from old CameraHolder, so it will have no parent;
   4. Remove Main Camera components: Camera FOV Handler and Object Shake;\
      Add to Main Camera "Cinemachine Brain" component if there is no yet;
   5. Remove old CameraHolder.

{% hint style="success" %}
Now you can use multiple virtual cameras and blend with them with Cinemachine built-in functionality and still use Camera Custom.
{% endhint %}
