Search Unity

[2.1 RC1] CinemachinePostProcessing extension bug

Discussion in 'Cinemachine' started by elettrozero, Oct 2, 2017.

  1. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    From time to time CinemachinePostProcessing extensions become <<Nothing Selected>>
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    That would happen if your define in the Player settings disappears. If I recall, it didn't get auto-set properly for you, which leads me to suspect some weirdess in your project. It would be nice to get to the bottom of it. Any chance of zipping it up for me?
     
  3. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    I'd be glad but it's more than 30Gbytes...is there a way to share it with you using Collaborate features?
     
  4. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    ack! Maybe next time you see the problem you could
    a. check CinemachinePostProcessing.cs to see if the code is enabled
    b. look for UNITY_POST_PROCESSING_V2 define in player settings
     
  5. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    The code is enabled and the define is in place.
    I can re-add the extensions right away but I loose the references to profiles.
    Maybe the issue has something to do with the fact that I receive 192 lines of error in console when the project opens like this one:
    Assertion failed: Unity extensions are not yet initialized, so we cannot say if the 'C:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityHoloLens/Runtime/UnityEngine.HoloLens.dll' is compatible with platform WindowsStoreApps
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    If asserts are popping then you don't know what code is getting run and what isn't. All bets are off. You have to make those messsages go away, and then see if you still get the problem.
     
  7. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    I'm going through patches....OT: is the last one cumulative or do I have to download each one?
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    If you're asking about Unity itself, then the latest release should be sufficient
     
  9. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    With the latest patch the errors on load are gone but problems with extensions remains.
    I'm trying switching to Standalone Player
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    Is it all the CM extensions, or just PostProcessing?
    Can you try deleting CM and PostProcessing, then re-installing both?
     
  11. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    I'm testing the thing on a (semi)empty project.
    Everything's perfect until you put Post Process Layer on the camera. After that, pressing play, randomly, a Cinemachine Post Processing extension becomes Nothing Selected.
    If I make the project compile the scripts, the extensions are there again but it lasts only until the next play.

    At this point I dunno if it's Cinemachine or Post Process related....
     
  12. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    After editing (added a space and removed) CinemachinePostProcessing.cs:
    When the scene starts playing these appear: GameObject (named '[CM NAME]') references runtime script in scene file. Fixing!
    The icon of the fixed extensions changes from generic to Cinemachine.
    And now the problem seems to not reappear.
    I also set the Post Process Layer on the camera to track nothing.
     
  13. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,726
    Do you get these messages every time you press play?
    What happens if you put the Post Process Layer back on the camera?
    Can you zip me up this smaller project, if it's not perfect?
     
  14. elettrozero

    elettrozero

    Joined:
    Jun 19, 2016
    Posts:
    216
    On the main project the problem is finally gone after struggling as mentioned.
    I can zip a smaller project with the issue, as soon as I can.