I want to set scene view camera same as a scene camera object, because there will be more than one camera and I like to see that object view in scene as it currently is, like the tiny camera preview, but for the entire scene view camera. With this code below you will need to scroll with the mouse wheel to set the zoom level or distance to zero - only doing that will let you have the same camera view.
I used this code:
if (GUILayout.Button("Zeige Kamera Sicht"))
{
SceneView sceneView = SceneView.lastActiveSceneView;
sceneView.ResetCameraSettings();
sceneView.camera.projectionMatrix = activeLinkedCamera.projectionMatrix;
sceneView.rotation = activeLinkedCamera.transform.rotation;
sceneView.pivot = activeLinkedCamera.transform.position;
sceneView.camera.CopyFrom(activeLinkedCamera);
Debug.Log("Szenen Kamera aktualisiert");
}
But I recognized, that the zoom level stays the same and I cannot identify a property to set it from script. I mean, I am looking to control the SceneView camera zoom (Scroll Wheel).