20 lines
461 B
C#
20 lines
461 B
C#
using SFB;
|
|
using UnityEngine;
|
|
using UVC.UI.Commands;
|
|
|
|
namespace AZTECHWB.Command
|
|
{
|
|
public class ScreenCaptureCommand : ICommand
|
|
{
|
|
public void Execute(object? parameter = null)
|
|
{
|
|
var destFilePath = StandaloneFileBrowser.SaveFilePanel("Save File", "", "", "png");
|
|
if (!string.IsNullOrEmpty(destFilePath))
|
|
{
|
|
ScreenCapture.CaptureScreenshot(destFilePath);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|