17 lines
445 B
C#
Raw Normal View History

2025-03-11 16:24:25 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ZXKFramework;
public class ScreenShotUse : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown(KeyCode.P))
{
string path = "ScreenShot";
ScreenShot.ShotSaveToPersistentDataPath(m => { }, path);
UnityTools.OpenDirectory(Application.persistentDataPath + "/" + path);
}
}
}