Peak4KScreenshot
One-key 4K screenshots for PEAK. Re-renders the view at true 4K via URP offscreen rendering. Optionally keeps the HUD and boosts quality.Changelog
All notable changes to this mod are documented in this file.
1.6.0
-
Added a Boost Quality option. When enabled, every graphics setting is temporarily raised to its highest level for the instant of the capture, then restored automatically:
- Shadow Distance → High (shadow distance 200, 2 cascades)
- Texture Quality → Native (no mipmap downscaling)
- World Quality → High (LOD bias 1.0)
- Render Scale → Native (100%, linear filtering)
- Ambient Occlusion → On
The settings are changed through PEAK's own settings objects, so the result is identical to picking the highest option in the game's graphics menu. Your original settings are restored right after the capture — the game menu shows them unchanged again.
-
F12 now opens the screenshots folder instead of a settings panel. The folder is created if it does not exist yet. The hotkey is configurable via
OpenFolderKey. -
The capture notification now shows whether maximum quality was applied.
1.4.2
- Fixed the on-screen notification never fading out. The notification was rendered with
TextMeshPro, which is a persistent object — returning early from
OnGUI(as is correct for IMGUI, where everything is redrawn every frame) left the text on screen forever. The notification is now drawn with IMGUI again, using a system font that contains Chinese glyphs, so both the positioning and the fade-out behave exactly as intended. TextMeshPro is kept as a fallback for systems where no suitable system font is available. - Fixed the notification text being clipped on the left ("Saved …" appeared as "ed …").
- The system font lookup now tries each candidate font name individually, so it still succeeds when some of the listed fonts are not installed.
1.4.1
- Fixed the on-screen notification not being rendered at all.
TextMeshProUGUIwas added to a bare GameObject, but UI components of TextMeshPro are only drawn when they are parented to aCanvas— without one, nothing is drawn. The mod now creates its own Screen Space - Overlay canvas (sortingOrder = 32000) and parents the text to it. - The plugin's own notification canvas is now excluded from the HUD handling, so it is never converted to Screen Space - Camera during a capture and never shows up in the screenshot.
- Added a fallback for the IMGUI path: when no TextMeshPro font can be resolved, a system font with Chinese glyphs (Microsoft YaHei / PingFang / Noto Sans CJK, …) is loaded instead of Unity's built-in Arial, which has no Chinese glyphs.
1.4.0
- Added language support for in-game messages and notifications. The plugin now follows the game language setting (English / Simplified & Traditional Chinese) and falls back to the system language. Log output and config file descriptions are localized as well.
- The on-screen notification is now rendered with TextMeshPro instead of IMGUI. Unity's built-in IMGUI font (Arial) has no Chinese glyphs, so Chinese text used to be drawn as a row of empty boxes. The mod now uses PEAK's own TMP font (which carries the Chinese fallback), so both languages display correctly.
- Translated the public documentation (README, CHANGELOG, manifest description) to English
so the submission passes moderation. A Simplified Chinese README is available separately as
README.zh-CN.md.
1.3.0
- Fixed wrong UI size inside captures. v1.2.0 added a
CanvasScalerwithConstantPixelSizeandscaleFactor = renderWidth / screenWidth, which scaled the HUD up several times (the health bar spanned the whole frame). PEAK's HUD uses a relative layout, so its proportions already match the screen once the canvas is resized to the 4K viewport — no extra scaling is needed. The default is nowUiScaleMode = Auto, which leaves the canvas scaling completely untouched. A newMatchScreenoption is available for fixed-pixel UI layouts. - Fixed the HUD size staying permanently changed after a capture.
EnsureScalerreturned the canvas's existingCanvasScaler, but the restore step destroyed it — removing the game's own scaler permanently altered how the UI is scaled. The plugin now distinguishes between scalers it added itself and scalers that were already there: existing ones only get their properties restored, only self-added ones are destroyed.
1.2.0
- Fixed blurry captures. v1.1.0 used
ScreenCapture.CaptureScreenshotAsTexture(superSize), but itssuperSizeupscales the backbuffer instead of re-rendering at a higher resolution (a 1600x900 window produced a 4800x2700 image that was visibly interpolated and soft). The plugin now renders through URP offscreen rendering, which produces genuine 3840x2160 pixels regardless of the window size. - Fixed the
planeDistancevalue. When converting an Overlay canvas to Screen Space - Camera, v1.0.x usednearClipPlane * 0.5, which places the canvas behind the near clip plane, so it was culled entirely and the UI could never be captured. It is nowmax(nearClipPlane * 2, 0.5). - Fixed hiding only part of the UI. Canvases in Screen Space - Camera mode are now hidden as well, not just the Overlay ones.
- Added startup diagnostics: the plugin prints the mode, layer, bound camera and size of every canvas in the scene after 60 frames.
1.1.0
- Switched the capture path to
ScreenCapture.CaptureScreenshotAsTexture. - Reworked logging to use BepInEx's
Logger.UnityEngine.Debug.Logcalled fromAwake()may not be written toLogOutput.logduring Chainloader startup, which made the plugin completely invisible while debugging. - Removed the
UseSuperSizesetting.
1.0.4
- Fixed a frame-ordering bug: a canvas does not rebuild its mesh immediately after its render
mode changes — that happens in the next frame's
CanvasUpdateRegistrypass. Submitting the offscreen render request in the same frame produced a capture without any UI. The plugin now callsCanvas.ForceUpdateCanvases(), waits a few frames, and only then submits the request.
1.0.3
- Added a temporary
CanvasScalerwhen converting Overlay canvases. PEAK's HUD ships without one (the scene contains zeroCanvasScalercomponents), so switching to Camera mode made the UI overflow the frame.
1.0.2
- First attempt at capturing the HUD by converting Overlay canvases to Screen Space - Camera.
1.0.1
- Fixed upside-down captures.
EncodeToPNGalready flips the texture vertically (Texture2D rows start at the bottom, PNG rows at the top), so flipping manually as well produced a net vertical flip. - Added the
OrientationFixsetting.
1.0.0
- Initial release: F4 hotkey, 4K capture through URP offscreen rendering, optional HUD hiding, PNG output written on a background thread.
