diff --git a/General/Runtime/FortySevenE.asmdef b/General/Runtime/FortySevenE.asmdef
index 5d9c151..4ab4c9d 100644
--- a/General/Runtime/FortySevenE.asmdef
+++ b/General/Runtime/FortySevenE.asmdef
@@ -5,7 +5,8 @@
"GUID:6055be8ebefd69e48b49212b09b47b2f",
"GUID:f06555f75b070af458a003d92f9efb00",
"GUID:d8b63aba1907145bea998dd612889d6b",
- "GUID:2665a8d13d1b3f18800f46e256720795"
+ "GUID:2665a8d13d1b3f18800f46e256720795",
+ "GUID:75469ad4d38634e559750d17036d5f7c"
],
"includePlatforms": [],
"excludePlatforms": [],
diff --git a/General/Runtime/Screenshot.cs b/General/Runtime/Screenshot.cs
index 799bc5e..46204d9 100644
--- a/General/Runtime/Screenshot.cs
+++ b/General/Runtime/Screenshot.cs
@@ -25,7 +25,20 @@ public class Screenshot : MonoBehaviour
private void Update()
{
- if (Input.GetKeyDown(KeyCode.P))
+#if ENABLE_INPUT_SYSTEM
+ if (UnityEngine.InputSystem.Keyboard.current.rightBracketKey.wasPressedThisFrame)
+#else
+ if (Input.GetKeyDown(KeyCode.RightBracket))
+#endif
+ {
+ CaptureCameraRenderTarget();
+ }
+
+#if ENABLE_INPUT_SYSTEM
+ if (UnityEngine.InputSystem.Keyboard.current.leftBracketKey.wasPressedThisFrame)
+#else
+ if (Input.GetKeyDown(KeyCode.LeftBracket))
+#endif
{
ScreenCaptureSimple();
}
@@ -42,6 +55,7 @@ public void CaptureCameraRenderTarget()
public void ScreenCaptureSimple()
{
ScreenCapture.CaptureScreenshot(FilePath);
+ Debug.Log($"[{GetType().Name}] Simple screenshot saved at {FilePath}");
}
private IEnumerator c_CapctureCameraRenderTarget()
@@ -100,6 +114,7 @@ private IEnumerator c_CapctureCameraRenderTarget()
bytes = ScreenshotTexture.EncodeToPNG();
File.WriteAllBytes(FilePath, bytes);
+ Debug.Log($"[{GetType().Name}] Camera texture saved at {FilePath}");
}
}
}
\ No newline at end of file