12 lines
236 B
C#
12 lines
236 B
C#
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
public class ScreenTest : MonoBehaviour
|
|
{
|
|
[MenuItem("Tools/snapshot")]
|
|
public static void ScreenShot()
|
|
{
|
|
ScreenCapture.CaptureScreenshot("Assets/Editor/snapshot.png");
|
|
}
|
|
} |