How can I do something to make camera looks exactly like the Scene View ?

Hi, as you know the camera lens is different with which we see in the Scene View, now I would to know how can I do something to make camera lens to looks exactly like Scene View ?

I’ve tried to change some of camera’s field like distance but still no luck. Can anybody help me please

Try copying the sceneview camera into your camera using an editor script:

myGameCamera.CopyFrom (SceneView.lastActiveSceneView.camera);

Thanks but can you explain a little more?

I’m kind of noob and didn’t understand what you said

Align your scene view to how you want it to look in your game view then go to the main menu and select ‘GameObject->Align with View’.
This will align your game view to your current view of the scene.

[EDIT]

Also I can provide you with the steps to write yourself an Editor Script:

1.Create a folder in your project called ‘Editor’ and create a new script which we will call ‘MyWindow’.

2.Open up the script and you can copy this code into it:

using UnityEngine;
using UnityEditor;
using System.Collections;

public class MyWindow : EditorWindow {
	
	
	[MenuItem("Window/MyWindow")]
	
	static void ShowWindow()
	{
		//EditorWindow.GetWindow(typeof(MyWindow));
		
		Camera cam = Camera.main;
		cam.CopyFrom(SceneView.lastActiveSceneView.camera);
	}

}

3.If you save and build this code then align your scene view where you want it and go to “Window->MyWindow”, this will not only align your game view but will copy it exactly e.g. the background colour will even be the same.

At the moment this is currently an undocumented feature but I am going to see if we can get the documents updated to account for it.

If you want to learn more about Editor Scripts then you can go to these links: