0
\$\begingroup\$

I am looking to get a Camera component's "view" matrix in a script. I see that I can get the projection matrix using Camera.projectionMatrix, but I don't see a Camera.viewMatrix property...

I want these matrices in a script for a 3D graphics refresher tutorial that will visualize a camera's view and projection transforms in the form of game objects (representing vertices) that can be moved around the scene.

\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

It looks like Camera.worldToCameraMatrix is the transform that is commonly referred to as the "View" matrix. After transforming some vectors using this and the projection matrix, I am getting the exactly results that I was expecting. Awesome. :)

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .