Where is the appropriate place to set up camera projection matrix?

I have multiple cameras in the scene, each have its own projection matrix settings. Where is the appropriate place to set up my cameras? Awake() OnPreRender() or Start()? Currently, in my simulation I set up the projection matrix in Start() and seems to work well.

My question is where is the appropriate place to put it? Appropriate = proper, best practice, logical, etc.

Please keep us posted on whether or not you've resolved the issue.

1 Answer

1

If it’s not going to change, Start() is perfectly fine. In the docs it shows it in Update(), but you’ll notice that’s because there are changing values.

Documentation Reference

@clunk47 Solved and answered. If I do not need to change the projection over time, Start() is fine otherwise in Update(). Thanks for the link to the doc, I did not see it before.