Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to I set the transition speed when modifying a target group

Discussion in 'Cinemachine' started by Morphus74, Oct 11, 2022.

  1. Morphus74

    Morphus74

    Joined:
    Jun 12, 2018
    Posts:
    174
    I have Cinemachine with 1 virtual camera using group composer.

    During gameplay I had/remove object from the target group which make the camera do a transition.

    Is there a way to control the speed of this transition?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    You need to lerp the weight of the member to 0, then remove it. You can control the duration of the lerp. You need to do this with a custom script.
     
  3. Morphus74

    Morphus74

    Joined:
    Jun 12, 2018
    Posts:
    174
    Ok so only way is to lerp Add at 0 then lerp to value or lerp to 0 then remove...
    Thank
     
    Gregoryl likes this.