截图脚本更新

This commit is contained in:
Abin committed 2026-05-20 11:47:17 +08:00
1 parent 2706aa5bf5
commit 06641aff2d
2 files changed
+19 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
using UnityEditor;
using UnityEngine;
public class ScreenTest : MonoBehaviour
{
[MenuItem("Tools/snapshot")]
public static void ScreenShot()
{
ScreenCapture.CaptureScreenshot("Assets/Editor/snapshot.png");
}
}