Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

VolumeSettings disappear from Vcams during Play

Discussion in 'Cinemachine' started by Spoonfishlee, Apr 27, 2019.

  1. Spoonfishlee

    Spoonfishlee

    Joined:
    Mar 21, 2016
    Posts:
    50
    Hi!

    I'm using the CinamachineVolumeSettings extension on my Vcams, and plug in the volume profiles, but during play mode, as well as between restarts of Unity, the extension disappears from the Vcams. It's more frequent with some few Vcams than others.

    So I end up adding a new identical extension to remedy this, but then occasionally the old extensions show up again, and 2-3 identical extensions are stacked on one Vcam.

    They also temporarily come back when I version up/down CM or even other apps in the Package Manager.

    I saw a similar thread but for PPv2, and not the Volume PP.

    HDRP in Unity 2019.1.0f2
    CM 2.3.4

    Thanks for your attention!
     
    SKoptev likes this.
  2. SKoptev

    SKoptev

    Joined:
    Jan 15, 2019
    Posts:
    37
    Same problem! Also, extensions disappears when you close/reopen whole project.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    There is a bug in Unity 2019 that causes conditionally-compiled behaviours to not appear properly. That could be the cause of this. Can you try patching the CinemachineVolumeSettings.cs file to change the first line from
    Code (CSharp):
    1. #if CINEMACHINE_POST_PROCESSING_V3
    to
    Code (CSharp):
    1. #if true || CINEMACHINE_POST_PROCESSING_V3
    You'll have to make it writeable in the cache. Let me know if that helps.
     
  4. Spoonfishlee

    Spoonfishlee

    Joined:
    Mar 21, 2016
    Posts:
    50
    Thanks for the tip! However, the file rewrites itself upon opening the project, so I can't tell if it works or not.
     
  5. wannax

    wannax

    Joined:
    May 8, 2019
    Posts:
    2
    Thanks for the tip!
    maxbet
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    Not exactly sure what you mean. Rewrites itself?
     
  7. SKoptev

    SKoptev

    Joined:
    Jan 15, 2019
    Posts:
    37
    it definitely helped. I've created many CinemachineVolumeSettings components from the editor code, than clode/open project again and wondered - why half of them subsequently working fine and half don't.
    Thank you!