MaskMaker【パーツクリックでマスク画像を作るUnity拡張】
- Mask Maker v1.0.0Digital750 JPY
- 開発支援(内容は同じ)Digital1,000 JPY
- 技術書をプレゼントする(内容は同じ)Digital2,000 JPY






Unity上でメッシュ上のパーツを選択することでマスク画像を作ることができるUnityの拡張機能です。 シーン上での対象のクリックか、プレビューのテクスチャのクリックで選択ができます。 衣装の部分的な色変更用のマスク作成や、ノーマルマップ、マットキャップなどのマスクなど、様々な用途に使用できるマスク画像を作成できます。 選択した時に塗られるパーツはUVアイランドで管理しています。 機能の詳細については後述の機能欄をご確認ください。 使用方法の詳細は同封された"使い方.md"を参照してください。 また、このソフトウェアで作成した画像は商用・非商用問わずご自由にお使いください。 利用例や感想などをXにてハッシュタグ #dennokoworks でツイートして頂けると励みになります。 もし不具合等ありましたらXにて @dennoko_vrc までご連絡ください。 https://x.com/dennoko_vrc 商品紹介に珍飯亭様のZev(https://booth.pm/ja/items/6717995)を使用させていただいています。©佐藤芋蔵/珍飯亭 -------------------------------------------------------------------------------------------- This is a Unity extension that allows you to create mask images by selecting parts of a mesh directly in Unity. This tool includes an English version of the Unity package and usage instructions. You can create mask images for a variety of purposes, such as partial color changes on outfits, masks for normal maps, matcaps, and more. The painted parts upon selection are managed based on UV islands derived from the mesh’s UV splits. For details about the features, please refer to the Features section below. For detailed usage instructions, please check the included "USAGE_EN.md" file. Additionally, images created with this software can be used freely for both commercial and non-commercial purposes. If you share your use cases or impressions on X with the hashtag #dennokoworks, it would be greatly appreciated and motivating. For any bugs or issues, please also feel free to reach out to me on X: @dennoko_vrc https://x.com/dennoko_vrc
v0.x.xからv1.x.xへのアップデートについて(How to Update v1.x.x from v0.x.x)
ツールのフォルダ名などを変更しているため、元フォルダ(Assets/Editor/UVMaksMaker)を削除してからインポートしてください。 インポートするとAssets/Editor/MaskMakerとして配置されます。 上部タブのToolsからツールを起動する際も、UVMaskMakerからMaskMakerに名前が変更されています。 お気を付けください。 Since the tool’s folder names have been changed, please delete the original folder (Assets/Editor/UVMaksMaker) before importing. After importing, it will be placed at Assets/Editor/MaskMaker. Also note that when launching the tool from the Tools menu in the top tab, the name has been changed from UVMaskMaker to MaskMaker. Please be careful.
使い方と調整項目について
動作条件 - Unity 2022.3.22f1 - UV0 が必要(本ツールは UV0 を使用) 動作はWindows11で確認 基本手順 1. メニューから `Tools > MaskMaker` を開く 2. ウィンドウ上部の枠に対象 GameObject をドラッグ&ドロップ(または Object フィールドで指定) - 自動的に作業用コピー([WorkCopy])が生成され、メッシュ変形の影響を受けずに安全に選択できます - ターゲット設定時に自動でUV解析が実行されます 3. `Edit Mode` で `Add`(選択)か `Remove`(解除)を選択 - ホットキー `R`(デフォルト)でモードを素早く切り替えられます 4. シーンビューまたは `UV Preview` 上でクリックしてUVアイランドを選択 5. `Pixel Margin` を必要に応じて調整(UVの境界を数ピクセル塗り広げて隙間を防ぐ) 6. `File Name` 等の設定を確認し、`Save PNG` でマスクを書き出し 7. (任意)詳細オプションを使用する場合: - チャンネル別出力: RGBAの特定チャンネルのみに書き込み、既存テクスチャへの合成も可能 - 頂点カラー焼き込み: 選択範囲を頂点カラーとしてメッシュに保存 【注意】 拡張機能のパーツ選択は対象となるモデルのUVに依存します。UVが繋がっているものや、適切にUV展開されていないモデルでは上手く動作しない恐れがあります。 メッシュ変形を行っている場合でも、Work Copy機能(デフォルト有効)により正確な位置で選択作業が可能です。 Work Copy機能を使用しない場合は、変形により実際のメッシュと表示位置がずれる場合がありますのでご注意ください。 --------------------------------------------------------------- Requirements - Unity 2022.3.22f1 - UV0 is required (this tool uses UV0) Tested on Windows 11 Basic Steps 1. Open `Tools > MaskMaker` from the menu 2. Drag & drop the target GameObject into the field at the top of the window (or specify it via the Object field) - A working copy ([WorkCopy]) is automatically created, allowing safe selection unaffected by mesh deformation - UV analysis runs automatically when the target is set 3. Choose `Add` (Select) or `Remove` (Deselect) in `Edit Mode` - You can quickly switch modes using the hotkey `R` (default) 4. Click on the mesh in the Scene view or `UV Preview` to select UV islands 5. Adjust `Pixel Margin` if needed (expands the fill boundary to prevent gaps) 6. Check `File Name` and output settings, then click `Save PNG` to export the mask 7. (Optional) Advanced Options: - Channel Write: Write to specific RGBA channels, allowing composition into existing textures - Vertex Color Bake: Save the selected area as vertex colors on a new mesh asset Notes Part selection depends on the UVs of the target model. Models with connected UVs or improper UV unwrapping may not work correctly. Even with mesh deformation, the Work Copy feature (enabled by default) allows for accurate selection. If you choose not to use the Work Copy feature, the mask selection may become misaligned with the displayed position due to deformations.
機能詳細とオプション
詳細機能とオプション 対象モデル (Target Model) - Object: 対象となる GameObject (MeshRenderer / SkinnedMeshRenderer) を指定 - Work Copy: アバターのポーズ変形等の影響を受けない、作業用の静的コピーを作成/削除します 編集モード (Edit Mode) - Add / Remove: クリック時の選択/解除動作の切り替え - ホットキー: モード切替に使用するキー(デフォルト: R / 環境設定で変更可能) 選択操作 (Selection Actions) - Analyze UVs: 現在のメッシュと設定でUV解析を実行(初回や設定変更時に実行) - Invert: 現在の選択状態を反転 - Select All: すべてのアイランドを選択 - Clear: 選択をすべて解除 UVプレビュー (UV Preview) - UV表示: 展開図を表示し、クリックでの選択も可能 - ベーステクスチャ表示: 元のテクスチャを背景に表示し、位置関係を確認可能(詳細オプションで切り替え) クイックエクスポート (Quick Export) - Resolution: 出力画像の解像度(256 ~ 4096) - Invert Mask: 白(選択)と黒(非選択)を反転して出力 - Pixel Margin: 黒領域(選択範囲)を外側に数ピクセル拡張し、UV境界の色の継ぎ目を防ぎます - Save PNG: 設定に基づいてマスク画像を保存 出力設定 (Output Settings) - File Name: 出力ファイル名(.png は自動付与) - Output Folder: 保存先フォルダを指定 - Main Texture Folder: チェックすると、対象モデルのテクスチャと同じフォルダに保存 - Save Inverted Too: 通常のマスクと同時に、反転したマスク(_inv.png)も書き出し 詳細オプション (Advanced Options) - Scene Overlay (シーン表示) - Draw on Top: 常に最前面にワイヤーフレームを描画 - Line Settings: 線の太さやデプスオフセット(埋まり防止)の調整 - Color Settings: 選択色、シーム色、プレビューの塗りつぶし色や透明度をカスタマイズ - Channel Write (チャンネル書き込み) - RGBA Select: 書き込み対象とするチャンネルを選択 - Base PNG: 既存の画像を指定することで、その画像の特定チャンネルだけを上書き更新可能 - Vertex Color Bake (頂点カラー焼き込み) - Bake to Mesh: 選択範囲を頂点カラーとしてメッシュに焼き込み、新規アセットとして保存 - Base Mesh: 既存の頂点カラー情報を持つメッシュを指定して合成可能 - Overwrite: 同名のメッシュアセットが存在する場合に上書きするかどうか - Preferences (環境設定) - Use Baked Mesh: ポーズ変形済みのメッシュ形状を使用して判定(SkinnedMeshRenderer使用時) - Auto Work Copy: ターゲット設定時に自動でWork Copyを作成するかどうか - Hotkey / Language: ショートカットキーと言語(日/英)の設定 --------------------------------------------------------------- Detailed Features and Options Target Model - Object: Specify the target GameObject (MeshRenderer / SkinnedMeshRenderer) - Work Copy: Create/Remove a static working copy unaffected by pose deformations Edit Mode - Add / Remove: Toggle between selecting and deselecting on click - Hotkey: Key used to switch modes (Default: R / Customizable in Preferences) Selection Actions - Analyze UVs: Analyze UVs with current settings (Run initially or after changing settings) - Invert: Invert current selection - Select All: Select all islands - Clear: Deselect all UV Preview - UV Display: Shows the UV layout; clickable for selection - Base Texture Overlay: Display original texture in background for reference (Toggle in Advanced Options) Quick Export - Resolution: Output image resolution (256 - 4096) - Invert Mask: Inverts white (selected) and black (unselected) in the output - Pixel Margin: Expands the black area (selection) by a few pixels to prevent bleeding at UV seams - Save PNG: Save the mask image based on settings Output Settings - File Name: Output file name (.png is automatically added) - Output Folder: Specify destination folder - Main Texture Folder: Save in the same folder as the model's texture - Save Inverted Too: Export an inverted version (_inv.png) simultaneously Advanced Options - Scene Overlay - Draw on Top: Always draw wireframes on top of other objects - Line Settings: Adjust line thickness and depth offset (to prevent z-fighting) - Color Settings: Customize selection color, seam color, preview fill color, and opacity - Channel Write - RGBA Select: Choose which channels to write to - Base PNG: Specify an existing image to overwrite only selected channels - Vertex Color Bake - Bake to Mesh: Bake selection as vertex colors into the mesh and save as a new asset - Base Mesh: Specify a mesh with existing vertex colors to composite with - Overwrite: Toggle overwriting if a mesh asset with the same name exists - Preferences - Use Baked Mesh: Use deformed mesh shape for detection (for SkinnedMeshRenderer) - Auto Work Copy: Automatically create a Work Copy when setting a target - Hotkey / Language: Settings for shortcut key and language (JP/EN)
内容物
- Unitypackage - 使い方.md(日本語の使い方) - Usage.md (英語版の使い方)
利用規約
- 二次配布は禁止です。 - 拡張機能をを使用して作成した画像は商用、非商用問わずご自由にお使いください。 - 本商品を利用したことによって生じるいかなる損害に対して当方は一切責任を負いません。 - OSやUnity等のアップデートなどで生じる仕様変更により、本商品の機能を使用できなくなった場合、当方は責任を負いません。 (可能な限り対応を続ける予定です) - 著作権はdennokoに帰属します。※生成した画像は含まれません。 ----------------------------------------------------------------- ・Redistribution is prohibited. ・Images created using this extension may be used freely for both commercial and non-commercial purposes. ・I take no responsibility for any damages arising from the use of this product. ・I am not responsible if updates to the OS, Unity, or other factors cause changes in specifications that make this product unusable. (I will continue to provide support as much as possible.) ・Copyright belongs to dennoko. This does not apply to the generated images.
更新履歴
[2026-01-22] v1.0.0リリース: UIの大幅な調整と、作業用複製メッシュ生成機能, プレビューテクスチャのクリックによる選択機能の追加 [2025-08-08]ホットキーが稀に動作しない問題を修正-v0.3.3 [2025-08-18]UVが重なっているメッシュの選択範囲のバグ修正、UV0以外のUVへの対応、その他細かい修正-v0.3.2 [2025-08-18]ベータ版リリース-v0.3.1 GitHub https://github.com/dennoko/UVMaskMaker






