Skip to content

SkinnedMeshRenderer Extension ​

Enhances the SkinnedMeshRenderer Inspector. It is especially helpful on avatar face meshes with many BlendShapes.

ON / OFF

Toggle it on the SkinnedMeshRenderer item of さたにあしょっぴんぐ/エディタカスタマイザー/Editor Setting (Satania Shopping / Editor Customizer / Editor Setting).

BlendShapes ​

  • Search Filter — Filter by name. No more scrolling through hundreds of shapes to find the one you want
  • Auto Grouping — Infers groups from naming conventions and shows them collapsed
  • Mask Filter — Choose which groups to display
    • The chosen groups are remembered per Inspector showing the list. Showing lists in two places (for example a locked Inspector and a normal one, or an Inspector and a Properties window) no longer resets each other's filter
    • The filter is kept only while that list stays on screen. In a locked Inspector or a Properties window it stays for as long as the list is shown; in a normal Inspector, selecting another object and coming back resets it to everything
  • 「有効化されたブレンドシェイプのみ表示」 (Show Only Active BlendShapes) mode — Lists only the shapes whose value is not 0
  • Value copy & paste — Two paste modes are supported:
    • Paste by order (index-based)
    • Paste by name (to the shapes with matching names; works even between meshes with a different order)
  • Reset all BlendShapes to 0 at once
  • Multi-selection — click BlendShape names to select them, with the same feel as Explorer: Shift for a range, Ctrl / Cmd to toggle individually, Ctrl+Shift to add a range, Esc to clear
    • Moving the slider of a selected row (including dragging on the name or typing a value) writes the same value to every selected row (one Undo step)
    • Right-click on a name → 「選択を 0 にする」 (Set Selection to 0), 「選択を最大値にする」 (Set Selection to Max), Revert Selected Shapes (reverts the prefab overrides of the selected rows on a prefab instance; disabled when nothing is overridden), 「選択した値をコピー」 (Copy Selected Values), 「表示中を全て選択」 (Select All Visible), 「選択を解除」 (Clear Selection). Unity's standard Copy / Paste / Revert / Apply items appear in the same menu
    • Selected rows hidden by the search or mask filter stay selected, and the header shows 「N 件選択中 (非表示 M)」 (N selected, M hidden). Toggling 「有効化されたブレンドシェイプのみ表示」 (Show Only Active BlendShapes) clears the selection
    • Can be turned off with 「BlendShape の複数選択」 (BlendShape Multi-Selection) on the SkinnedMeshRenderer item of Editor Setting (default ON)
  • Display names (aliases) — Right-click a name → 「表示名を変更...」 (Change Display Name) to give it a display name that only applies in this Inspector (e.g. vrc.v_aa → 「あ」). Renamed rows get a small mark (•) after the name, and hovering over them shows the original name
    • The mesh's BlendShape names do not change. Animations, the Animation window, other tools and value copy & paste keep using the original names
    • Display names are stored for this project only and are shared by every renderer that uses the same mesh (other meshes in the same FBX keep their own). The search filter matches both the display name and the original name
    • To revert one, choose 「表示名を元に戻す」 (Revert Display Name) in the same menu, or clear the input field and press OK. 「BlendShape の表示名 (別名)」 (BlendShape Display Name (Alias)) on the SkinnedMeshRenderer item of Editor Setting reverts all of them at once or turns the feature off (default ON)

Bone Information ​

  • m_Bones list — Shows the normally hidden m_Bones array below Materials as read-only (click to Ping)
    • The list cannot be reordered or resized, because that would break the correspondence between bones and bindposes and corrupt the skinning
    • Shown on Unity 2020.2 and later. It does not appear on 2019.4 (the "Used bones" list below does appear on 2019.4)
  • Used bones (with weights) list — Lists only the bones that actually have weights painted on the mesh
    • When Bones (m_Bones) has no bone at an index that the mesh's weights refer to (Bones is empty or has too few entries), the number of bones that cannot be looked up is shown. When none can be looked up, the message reads like 「ウェイトのあるボーン 116 本は、このレンダラーの Bones (0 本) では引けません」 (The 116 bones with weights cannot be looked up in this renderer's Bones (0 bones)); when only some cannot, a message like 「ほかに 16 本、Bones (100 本) の範囲外の番号にウェイトがあります」 (16 more bones have weights at indices outside Bones (100 bones)) appears below the list. The number in the header does not include them, so a renderer with empty Bones (e.g. a model imported with Optimize Game Objects enabled) shows (0) in the header; expand the list to check
    • Can be turned off with 「使用ボーン一覧を表示」 (Show Used Bones List) on the SkinnedMeshRenderer item of Editor Setting (default ON)
Implementation Notes (for Developers)
  • Values are formatted locale-independently (InvariantCulture), so copied values can be exchanged with people in different environments
  • The used bone list is aggregated with Mesh.GetAllBoneWeights and cached per mesh. The cache keeps bone indices, and the Transforms are looked up in each renderer's bones when drawn, so another renderer that uses the same mesh shows its own bones. The list is recounted when the mesh is modified (when EditorUtility.GetDirtyCount changes), and the cache is dropped when assets are imported, deleted or moved, a scene is saved, Play mode is entered or exited, or the selection changes

MIT License