There are some camera extension prefabs provided by the user community to complement the lack of camera functionality.
They capture a scene with photo quality for all frames because there is no way to detect whether high-resolution capturing is required for the current frame or not in the animator.
Of course, it requires too many computations for a 4K/8K camera. Using preview quality for non-shooting frames can reduce this cost.
This proposal introduces some animator parameters that represent the states of the built-in camera for the current frame.
They will make it possible to optimize rendering quality for photo shooting.
CameraState
: is an integer that represents the state of the built-in camera for the current frame.
  • 0: Built-in camera is disabled.
  • 1: Photo camera is enabled and previewing.
  • 2: Photo camera is capturing for saving photos.
  • 3: Stream camera is enabled.
CameraResolutionX
and
CameraResolutionY
: are integers that represent camera resolution for the photo camera or screen resolution for the stream camera.