I have installed cinemachine and I am using the latest version of it. But the camera is not only being created how can it work without a camera no matter what change is there in workflow
There are two relevant objects that should be present in the hierarchy if you’ve correctly added a Cinemachine Virtual Camera: a Camera (which I do see in your hierarchy) and a Virtual Camera (which I don’t).
I’ve attached a typical hierarchy as it appears for me, using CM 2.7.3, and you can see both the Camera and the Virtual Camera.
Adding a Virtual Camera to the hierarchy is the most basic of functions, so I’m certain it works correctly. I might need more explicit information from you to help you diagnose the problem. To that end, please give me the exact version number of Cinemachine and walk me through exactly what you’ve tried. I’ll do my best to assist. Also, please let me know if you see any errors in the console.
Since you were following a tutorial, may I ask if at some point you installed Cinemachine (or anything else) from the Asset Store?
Maybe try with a clean project? Just create the new project from the 3D template. Open Package Manager. Install Cinemachine 2.7.5. Create a Freelook camera. That at least works for me.
Ah, ok, with some help from Gregory, I see what’s happening here!
OK, first the good news: you’re not crazy. In fact, you’ve exposed a bug. But that bug wasn’t immediately obvious to me because you’re approaching the Vcam instantiation in a slightly unusual way.
The even more good news is that this is easy for you to remedy. Gregory noticed that you’re creating the Freelook Camera from the Components menu, and this is not at all how we intend people to instantiate Cinemachine Cameras. (Should it work properly the way you did it? Yes. But it doesn’t, and that’s the bug we’ll fix in a future release.)
So here’s the fix for you: instead of creating the camera from the Components menu, do it from the GameObject menu: GameObject > Cinemachine > FreeLook Camera
The reason one of these works and the other doesn’t is a bit technical so I’ll skip the wordy explanation. Just try it and let me know if this gets you fixed and going.