Finally hit my first snag of the course while trying to apply zoom to the Cinemachine Virtual Camera. Feels like it ought to be a simple fix but I can’t quite figure it out.
I’m using this code directly from the lesson video:
[SerializeField] private CinemachineVirtualCamera cinemachineVirtualCamera;
Visual Studio throws an error for the [SerializeField] portion and tells me that “attributes are not valid in this context,” and it throws an error for the private attribute as well.
I’m on Unity 2022.2.0a17.2573, using the 2.9.0-pre.6 version of Cinemachine from the Package Manager.