Unity上でSkinnedMeshRendererの持つブレンドシェイプそれぞれに対してスクリーンショットを撮影するスクリプトです。
ここでは、⊿S.I.N 様の【3Dモデル】Leeme -リーメ- & Reeva -リーバ-に対して本スクリプトを使用しています。
https://tomori-hikage.booth.pm/items/972559
念の為使用前にプロジェクトのバックアップを取ってください。
- AssetsにBlendShapeScreenshot.csを配置します。
- RenderTextureを用意します。
- Sceneに撮影したいアングルに設定されたCameraを配置します。
- CameraのTargetTextureにRenderTextureを指定します。
- 撮影したいブレンドシェイプが含まれているSkinnedMeshRendererが含まれているGameObjectにBlendShapeScreenshot.csを追加します。
- Blend Shape Screenshotに3のCameraを指定します。
- "Take Screenshot"を押して、終了するまで待ちます。このとき、Unity Editor以外のウインドウにフォーカスを当てないでください。
- \Assets\BlendShapeCapturesにBlendShapeと同じ名前の画像が保存されます。
このスクリプトはMITライセンスで公開されています。 https://opensource.org/licenses/mit-license.php