Files
AIGame/AIClient/AgentScripts/FrameTownSquare.cs
T
udxandCursor 9793d8581d Add TownSquare scene assets, resource production docs, and model pipeline updates.
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>
2026-09-28 14:28:46 +08:00

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";
}
}