{"id":33023127,"url":"https://github.com/wotakuro/ScreenshotToUnityProfiler","last_synced_at":"2025-11-24T23:30:13.873Z","repository":{"id":47031280,"uuid":"259489490","full_name":"wotakuro/ScreenshotToUnityProfiler","owner":"wotakuro","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-23T07:22:51.000Z","size":2824,"stargazers_count":105,"open_issues_count":0,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-07-23T09:43:45.947Z","etag":null,"topics":["unity","unity-profiler","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wotakuro.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-28T00:28:44.000Z","updated_at":"2024-07-23T07:21:11.000Z","dependencies_parsed_at":"2024-07-22T09:19:08.013Z","dependency_job_id":"d6866c0b-05e6-4310-9947-43644f200832","html_url":"https://github.com/wotakuro/ScreenshotToUnityProfiler","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/wotakuro/ScreenshotToUnityProfiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wotakuro%2FScreenshotToUnityProfiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wotakuro%2FScreenshotToUnityProfiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wotakuro%2FScreenshotToUnityProfiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wotakuro%2FScreenshotToUnityProfiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wotakuro","download_url":"https://codeload.github.com/wotakuro/ScreenshotToUnityProfiler/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wotakuro%2FScreenshotToUnityProfiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-24T02:00:07.096Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["unity","unity-profiler","unity3d"],"created_at":"2025-11-13T19:00:34.935Z","updated_at":"2025-11-24T23:30:13.862Z","avatar_url":"https://github.com/wotakuro.png","language":"C#","funding_links":[],"categories":["Game-BenchMark/Metric/Tool"],"sub_categories":[],"readme":"# ScreenshotToUnityProfiler\n\n[![openupm](https://img.shields.io/npm/v/com.utj.screenshot2profiler?label=openupm\u0026registry_uri=https://package.openupm.com)](https://openupm.com/packages/com.utj.screenshot2profiler/)\n\n## このツールについて\nUnity Profiler上に、Screenshotを載せることが出来ます.\u003cbr /\u003e\n![ScreenshotToUnityProfiler](Documentation~/image.gif \"ScreenshotToUnityProfiler\")\n\n## 必要な環境\n- Unity 2019.4以上.\u003cbr /\u003e\n\n## 推奨環境\n- System.supportsAsyncGPUReadbackをサポートしている環境 (モバイルでは vulkan または metal。※2021.2以降であればGLES3でも可)\u003cbr /\u003e\n supportsAsyncGPUReadbackが未対応でも動作はしますが、非常に思いため推奨できません。\u003cbr /\u003e\n\n## インストールについて\n\n[OpenUPM](https://openupm.com/packages/com.utj.screenshot2profiler/) (requires [openupm-cli](https://github.com/openupm/openupm-cli#openupm-cli)) 経由について\n\n```\nopenupm add com.utj.screenshot2profiler\n```\n\n## 利用方法\n1.初期化方法について. \u003cbr /\u003e\n\"ScreenShotProfiler.prefab\" をシーン上に配置してください.\u003cbr /\u003e\n![ScreenshotToUnityProfiler](Documentation~/ScreenShotPrefab.png \"Place Prefab\")\u003cbr /\u003e\n(Inspector上で設定変更が可能です。)\u003cbr /\u003e\n\nもしくは下記の初期化メソッドを呼び出してください\nUTJ.SS2Profiler.ScreenShotToProfiler.Instance.Initialize(); \u003cbr /\u003e\nもしくは \u003cbr /\u003e\nUTJ.SS2Profiler.ScreenShotToProfiler.Instance.Initialize(w,h);\u003cbr /\u003e\n( w,h はレコードするテクスチャサイズです).\n\n2.\"Tools -\u003e ProfilerScreenshot\" をメニューから呼び出してください。 \u003cbr /\u003e\nスクリーンショットが表示されるウィンドウが現れます\n\n### スクリーンキャプチャの代わりに任意の画像を表示する方法\n下記はRenderTextureをScreenShotに載せるサンプルです\n```\nRenderTexture captureRenderTexture;\n\nScreenShotToProfiler.Instance.captureBehaviour = (target) =\u003e {\n    CommandBuffer commandBuffer = new CommandBuffer();\n    commandBuffer.name = \"ScreenCapture\";\n    commandBuffer.Blit(captureRenderTexture, target);\n    Graphics.ExecuteCommandBuffer(commandBuffer);\n};\n```\n[サンプルC#コード](Sample~/SwitchSample.cs)\u003cbr /\u003e\n\n## コマンドラインオプション\n実行時にコマンドラインオプションを付けることで、強制的に挙動を変更する事が可能です。(Editor実行時は無効)\n\n### \"--profilerSS\"による有効・無効\n\"--profilerSS=enable\"という形でオプションを付ける事で、Screenshotを起動直後から強制的に取るようにします。\u003cbr /\u003e\n\"--profilerSS=disable\"という形でオプションを付ける事で、Screenshotを強制的に無効化できます\n\n### \"--profilerSS-resolution\"での解像度変更\n\"--profilerSS-resolution=256x192\"のように、Textureの\"幅x高さ\"を措定できるようになります。\u003cbr /\u003e\n\n### \"--profilerSS-format\"でのフォーマット変更 \n\"--profilerSS-format=JPG_BUFFERRGB565\"のようにすることで、TextureをJpg圧縮する事が可能です。\u003cbr /\u003e\n\nオプションの値一覧 \n- \"NONE\" → RGBA 32bit無圧縮設定\n- \"RGB_565\" → RGB565(16bit) 無圧縮設定\n- \"PNG\" → RGBA 32Bit PNG圧縮設定\n- \"JPG_BUFFERRGBA\" → RGBA 32bit JPEG圧縮設定\n- \"JPG\" / \"JPG_BUFFERRGB565\" → RGB565 JPEG圧縮設定\n\n### オプション例\n    例：Sample.exe --profilerSS=enable --profilerSS-resolution=640x480 --profilerSS-format=jpg \u003cbr /\u003e\n    例：adb shell am start -n com.utj.test[パッケージ名]/com.unity3d.player.UnityPlayerActivity[アクティビティ名] -e \"unity --profilerSS=disable\"\u003cbr /\u003e\n\n## 変更履歴\n\u003cpre\u003e\nversion 1.5.0\n　コマンドラインオプションを追加\n　解像度の表示\n\nversion 1.4.0\n  カラースペース変換機能を追加\n\nversion 1.3.0\n  Unity 2021.2以降向けにProfilerのカスタムModuleを追加\n\nversion 1.2.1\n  リリースビルド時にエラーが出てしまっていたので修正\n\nversion 1.2.0\n  Profilerデータがないときに、NullReference　Exceptionが出る問題を修正\n  テクスチャ圧縮の追加\n   Screenshotではなく任意の画像を載せるInterfaceの追加\n  \"ScreenshotToUnityProfiler.prefab\"の追加\n\nversion 1.1.0\n  supportsAsyncGPUReadbackに対応していないケースへの対応\n\u003c/pre\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwotakuro%2FScreenshotToUnityProfiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwotakuro%2FScreenshotToUnityProfiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwotakuro%2FScreenshotToUnityProfiler/lists"}