Is it possible to place camera object in editor in the same position and rotation as my current scene view? I need to put lots of cameras on scene and changing each camera’s position and rotation by hand after placing them on scene is a bit of pain.
Select your Camera in the Hierarchy,
and click:
GameObject->Align With View
from the menu bar.
This tip is so good, I sent a reward of 1,000 points … Fattie
If you are looking for camera align you must check my plugin it allows you to stream camera view from editor to game and vise versa.
using UnityEngine;
using UnityEditor;
[ExecuteInEditMode]
public class AlignCam : MonoBehaviour
{
public Camera gameCam;
public bool updateView = false;
private void LateUpdate()
{
if (updateView)
{
SceneView sceneCam = SceneView.lastActiveSceneView;
gameCam.transform.position = sceneCam.camera.transform.position;
gameCam.transform.rotation = sceneCam.camera.transform.rotation;
}
}
}