Search Unity

Cinemachine move away from player, no input

Discussion in 'Cinemachine' started by GladisAd, Mar 11, 2022.

  1. GladisAd

    GladisAd

    Joined:
    Oct 5, 2014
    Posts:
    28
    Hi,

    I'm trying to change the cinemachine camera's 'Camera Distance' settings, but I'm unable to find a way of simply implementing an increase in distance from the player using a time.deltaTime when the game instantiates (smooth move away).

    Just trying to change the Camera Distance from 2 > 20 then stopping. Any help would be greatly appreciated, as everything I've found involves inputs/mousescroll wheel, and they don't seem to work properly anyway.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    The easiest way is to start with a vcam at the close position, and then when you want to move away, activate another vcam at the farther distance, and just let the brain do the blend.
     
  3. GladisAd

    GladisAd

    Joined:
    Oct 5, 2014
    Posts:
    28
    Thanks, I already have 2 cameras, but when I activate the second camera it just snaps into place. Is there documentation that might help with the brain blend settings, and how to set it all up?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    The default blend is configured here in the CM Brain:

    upload_2022-3-11_9-18-43.png

    If you don't want to change the default blend, you can create a Custom Blends asset and add an entry for this specific blend.