Firstborn/Assets/AwesomeTechnologies/VegetationStudioPro/Runtime/Utility/ScreenshotUtility.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

26 lines
532 B
C#

using System;
using UnityEngine;
namespace AwesomeTechnologies.Utility
{
[AwesomeTechnologiesScriptOrder(200)]
public class ScreenshotUtility : MonoBehaviour
{
public void TakeScreenshot()
{
ScreenCapture.CaptureScreenshot("Screenshot_" + Guid.NewGuid() + ".png", 1);
}
void LateUpdate()
{
if (Input.GetKeyDown(KeyCode.Alpha0))
{
Debug.Log("screenshot");
TakeScreenshot();
}
}
}
}