您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
15 行
510 B
15 行
510 B
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public class MoveSceneViewCamera
|
|
{
|
|
[MenuItem ("Window/Position Scene View Camera")]
|
|
static void PositionCamera ()
|
|
{
|
|
SceneView.lastActiveSceneView.pivot = new Vector3(-147f, 23.5f, 237f);
|
|
SceneView.lastActiveSceneView.rotation = Quaternion.Euler (0f, 150f, 0f);
|
|
SceneView.lastActiveSceneView.orthographic = true;
|
|
SceneView.lastActiveSceneView.size = 100f;
|
|
Selection.activeGameObject = Camera.main.gameObject;
|
|
}
|
|
}
|