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 Keep position when TargetGroup IsEmpty

Discussion in 'Cinemachine' started by NoobCoderFake, Jun 13, 2023.

  1. NoobCoderFake

    NoobCoderFake

    Joined:
    Nov 24, 2015
    Posts:
    41
    Is there any way to make vcam just keep where it was when TargetGroup IsEmpty? Or should I add a temp member when its m_Targets is empty to avoid the movement when removed all members?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    The group ought to just keep its position when it's empty. What is it doing instead?
     
  3. NoobCoderFake

    NoobCoderFake

    Joined:
    Nov 24, 2015
    Posts:
    41
    I dont know, but the vcam just move to another position for some reason just like this:

    upload_2023-6-14_11-4-40.png
    upload_2023-6-14_11-4-40.png

    with target:
    upload_2023-6-14_11-4-40.png

    with targets empty:
    upload_2023-6-14_11-4-40.png
     

    Attached Files:

  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,233
    What version of Cinemachine are you using? Try updating to the latest 2.9.7 and let me know if that fixes the issue.