Skip to content

HDR対応スクリーンショット(screenshot_hdr)を追加#11

Open
takashicompany wants to merge 2 commits into
masterfrom
fix/hdr-screenshot-hang
Open

HDR対応スクリーンショット(screenshot_hdr)を追加#11
takashicompany wants to merge 2 commits into
masterfrom
fix/hdr-screenshot-hang

Conversation

@takashicompany
Copy link
Copy Markdown
Owner

Summary

  • HDRが有効なプロジェクトで ScreenCapture.CaptureScreenshotAsTexture() / CaptureScreenshotIntoRenderTexture() がハングする問題への対策
  • Camera.Render() + RenderTextureFormat.DefaultHDR を使用する screenshot_hdr コマンド・MCPツールを新規追加
  • 既存の screenshot コマンドは一切変更なし

背景

変更内容

ファイル 変更
Editor/CommandRouter.cs screenshot_hdr ルーティング追加
Editor/Handlers/ScreenshotHandler.cs HandleHDR() メソッド追加
Server~/src/playcaller/server.py playcaller_screenshot_hdr MCPツール追加

使い方

HDRが有効なプロジェクトでは playcaller_screenshot の代わりに playcaller_screenshot_hdr を使用する。
パラメータは playcaller_screenshot と同一(width, height, filename)。

テスト

URP + HDR有効(m_SupportsHDR: 1)のプロジェクト(Unity 2022.3.67f2, macOS)で動作確認済み:

  • Play Mode中のスクリーンショット撮影が正常に完了(タイムアウトしない)
  • UI(Canvas)も含めてキャプチャされることを確認

🤖 Generated with Claude Code

takashicompany and others added 2 commits March 25, 2026 17:24
HDRが有効なプロジェクトでScreenCapture系APIがハングする問題への対策として、
Camera.Render() + RenderTextureFormat.DefaultHDR を使用する
screenshot_hdr コマンドを新規追加。

既存の screenshot コマンドは変更なし。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@takashicompany takashicompany changed the base branch from master to develop March 25, 2026 08:32
Base automatically changed from develop to master March 25, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant