Search Unity

Pause Cinemachine transitions independently from Time.timescale

Discussion in 'Cinemachine' started by LRP, Nov 28, 2019.

  1. LRP

    LRP

    Joined:
    Jan 22, 2015
    Posts:
    3
    Hello there,

    I am currently trying to pause and resume cinemachine update mid-transition. I do not want to use Time.timescale.

    I tried disabling Cinemachine brain, which works for pausing, but resuming will instantly cut to CamB.

    Is there any known way to effectively pause and resume all updates mid-transition ?

    Thanks
     
    Last edited: Nov 29, 2019
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    In the very latest CM (2.4.0-preview.8, available soon) there is a secret feature:
    CinemachineCore.UniformDeltaTimeOverride
    which, when non-negative, will force the CM brain to update with that timestep. Set it to 0 to pause, and to -1 to resume.
     
  3. LRP

    LRP

    Joined:
    Jan 22, 2015
    Posts:
    3
    Might indeed solve my issue thanks you very much
    "secret feature" though ... ?
     
    Last edited: Nov 30, 2019
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,724
    I don't think it will give you any trouble :)
     
  5. LRP

    LRP

    Joined:
    Jan 22, 2015
    Posts:
    3
    noted, thanks
     
    GazaG likes this.