Search Unity

Bug My cinemachine brain camera is giving me this error code:

Discussion in 'Editor & General Support' started by Exice2010, Sep 17, 2023.

  1. Exice2010

    Exice2010

    Joined:
    Nov 3, 2021
    Posts:
    30
    Error Code:
    NullReferenceException: Object reference not set to an instance of an object
    Cinemachine.CinemachineFreeLook.InternalUpdateCameraState (UnityEngine.Vector3 worldUp, System.Single deltaTime) (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Behaviours/CinemachineFreeLook.cs:366)
    Cinemachine.CinemachineCore.UpdateVirtualCamera (Cinemachine.CinemachineVirtualCameraBase vcam, UnityEngine.Vector3 worldUp, System.Single deltaTime) (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Core/CinemachineCore.cs:355)
    Cinemachine.CinemachineCore.UpdateAllActiveVirtualCameras (System.Int32 layerMask, UnityEngine.Vector3 worldUp, System.Single deltaTime) (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Core/CinemachineCore.cs:285)
    Cinemachine.CinemachineBrain.UpdateVirtualCameras (Cinemachine.CinemachineCore+UpdateFilter updateFilter, System.Single deltaTime) (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Behaviours/CinemachineBrain.cs:427)
    Cinemachine.CinemachineBrain.ManualUpdate () (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Behaviours/CinemachineBrain.cs:376)
    Cinemachine.CinemachineBrain.LateUpdate () (at Library/PackageCache/com.unity.cinemachine@2.8.9/Runtime/Behaviours/CinemachineBrain.cs:336)


    I have just started the unity lego microgame thing and after a bit of time and changes i got this message.
    I use the Unity 2021.3.27f1 version.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,712
  3. Exice2010

    Exice2010

    Joined:
    Nov 3, 2021
    Posts:
    30
    Thx that worked