Search Unity

Cinemachine not working in build

Discussion in 'Cinemachine' started by Mr12Fingers, Jun 24, 2022.

  1. Mr12Fingers

    Mr12Fingers

    Joined:
    Dec 26, 2012
    Posts:
    18
    When using cinemachine virtual cameras in the editor everything works fine. As soon as I make a build it throws an error saying the game object can't be find (when referring to the object the virtual camera is on).
    This is the case for any game object with a cinemachine camera.

    The player logs don't tell me much. Should I be looking in there to see if the Cinemachine instatiates?

    I read somewhere about a possible issue with PPSv2 but I don't have that in my project. Do I need to update any other plugins? I can't seem to figure this out.

    I'm using Unity 2021.1.17f1 and the latest version of Cinemachine.
    Any help would be greatly appreciated.

    Thank you in advance!
     
  2. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    Could you send an image of your Hierarchy?
     
  3. Mr12Fingers

    Mr12Fingers

    Joined:
    Dec 26, 2012
    Posts:
    18
    Thank you for the reply. Here is the heirarchy. You can see the cameras in ****LightsNCamera**** object.
    heirarchy.png
     
  4. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    I don't see anything jumping out, and I have not experienced this bug before. Could you send me a repro project or submit a bug report?
    I'll take a look if I can see why it happens.
     
  5. Mr12Fingers

    Mr12Fingers

    Joined:
    Dec 26, 2012
    Posts:
    18
    It's a fairly large project. Is that ok to send via bug report? It's actually almost 20gb.
     
  6. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    It would be helpful, if you could isolate the issue in a smaller project.
     
  7. lanah5

    lanah5

    Joined:
    Sep 25, 2022
    Posts:
    10
    IT WON'T LET ME USE CINEMACHINE WHEN I INSTALLED THE PACKAGE :'( :(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:(:( IT IS APPEARING I ALSO TRIED SIGNING IN THEN OUT AND ALSO TRIED TO REMOVE IT THEN RE-INSTALL IT R.I.P
     
  8. gaborkb

    gaborkb

    Unity Technologies

    Joined:
    Nov 7, 2019
    Posts:
    856
    How did you install the package? Did you install it through the Package Manager?