Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

[1115557] CinemachineBrain component causes scene to be flagged as dirty when leaving Play Mode

Discussion in 'Cinemachine' started by dgoyette, Jan 9, 2019.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    1,075
    Having a CinemachineBrain in my scene causes the scene to think it has unsaved changes when leaving play mode. Effectively, every time I leave Play Mode, I get a "*" next to the scene name. I reported this as Bug #1115557, so this is just a heads up.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,946
    This is a side-effect of SaveDuringPlay functionality, which allows tweaks made to the vcam settings while in play mode to be retained when you come back to edit mode. If this bothers you, then you can just turn off the SaveDuringPlay feature:

    upload_2019-1-9_10-33-32.png
     
    dgoyette likes this.
  3. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    1,075
    Thanks. That's helpful. Worth mentioning: the test case I submitted didn't have a Cinemachine Virtual Camera in the scene, just a Cinemachine Brain. So there was no Save During Play to uncheck. However, upon adding a Cinemachine Virtual Camera and unchecking Save During Play, that cleared up the dirty problem. So that's probably fine given that I don't think I'd have the former without the latter.