unity get camera
Code Example - unity get camera
// Gets the camera with the tag "MainCamera" attached to it.
Camera.main;
// Gets the currently active camera.
Camera.current;
// Gets the camera with the tag "MainCamera" attached to it.
Camera.main;
// Gets the currently active camera.
Camera.current;