Files
AZTECH_WB/Assets/Scripts/Command/ScreenHistoryCommand/ScreenCaptureCommand.cs
정영민 986886a260 [정영민] 아즈텍 프로젝트 OCTOPUS TWIN 템플릿 적용
26.02.26
- XRLib 추가 및 적용
- 아즈텍 프로젝트 OCTOPUS TWIN 템플릿 적용
2026-02-26 17:26:55 +09:00

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