以下の内容はhttps://baba-s.hatenablog.com/entry/2021/11/10/200300より取得しました。


【Unity】Scene ビューの 2D カメラの位置やサイズを変更するエディタ拡張

概要

using UnityEditor;
using UnityEngine;

public static class Example
{
    [MenuItem( "Tools/FixCameraPivotAndSize" )]
    public static void FixCameraPivotAndSize()
    {
        var sceneView = SceneView.lastActiveSceneView;

        if ( sceneView == null ) return;

        sceneView.pivot = new Vector3( 0, -1.5f, 0 );
        sceneView.size  = 8;
        sceneView.Repaint();
    }
}

参考サイト様




以上の内容はhttps://baba-s.hatenablog.com/entry/2021/11/10/200300より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14