CopyFromMainCamera

Method

Returns a copy of the main camera. This is useful for creating a new camera with the same properties and transform as the main camera. Unity docs

Definition

void CopyFromMainCamera(Camera camera)
void CopyFromMainCamera(Camera camera)

Parameters

ParameterDescription
Camera camera