Bring in plaza props/prefabs, ZhaoYun source GLB, design originals, and Hunyuan/Blender tooling used to produce them. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
522 B
C#
19 lines
522 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public static class FrameTownSquare
|
|
{
|
|
public static string Run()
|
|
{
|
|
SceneView.FocusWindowIfItsOpen<SceneView>();
|
|
var v = SceneView.lastActiveSceneView;
|
|
if (v == null && SceneView.sceneViews.Count > 0)
|
|
v = SceneView.sceneViews[0] as SceneView;
|
|
if (v == null)
|
|
return "no scene view";
|
|
v.LookAt(new Vector3(0f, 1.0f, 0.5f), Quaternion.Euler(38f, 12f, 0f), 22f);
|
|
v.Repaint();
|
|
return "framed";
|
|
}
|
|
}
|