HI, I’m trying to build a project and I have to use camera properties. The problem I’m having is that I can’t find a way to get such information and implementing it in the C# script. Does anyone know how to get the camera intrinsic parameters? like focal length in terms of pixels and principal points (optical center). I attached an image of what I’m explaining here. plz help me with this
I don’t know the direct answer to your question, but it makes a difference which render pipeline you are using (e.g. HDRP uses volumetrics) and whether you are using Cinemachine cameras as well (some settings go there instead). (I tend to use “look at” style capabilities, so don’t know how to set those numbers directly.)
1 Like
FYI Cinemchine just drives the main camera, so if you query the main camera you’ll get whatever Cinemachine put there. No need for special CM handling.
1 Like
You’ll need to use physical camera - Unity - Manual: Using Physical Cameras.
Try asking/searching on the graphics forum: Unity Engine - Unity Discussions.
1 Like