Skip to content

Camera.main is inefficient in frequently called methods

Matt Ellis edited this page Jul 6, 2018 · 15 revisions

STUB: To be updated

Camera.main calls FindGameObjectsWithTag and doesn't cache the result. This is inefficient in frequently called methods such as Update. Consider caching the camera in Start or Awake.

See the documentation for Camera.main and also th support document "Camera.main is slow".

Clone this wiki locally