ホーム/ゲーム開発/msw-sprite-ruid
M

msw-sprite-ruid

by @msw-gitv
4.4(120)

この Skill は、ゲーム開発における SpriteRendererComponent と SpriteGUIRendererComponent の RUID タイプをネイティブでサポートします。sprite や animationclip の RUID を直接再生でき、"thumbnail://" プレフィックスで任意のリソースを静的サムネイルとしてレンダリング可能です。これにより、アバターアイテムのアイコンやアニメーションクリップなど、ゲーム内アセットの表示と管理が簡素化され、開発効率と視覚的表現力が向上します。

game-developmentsprite-renderingasset-managementui-renderinganimationGitHub
インストール方法
npx skills add https://github.com/msw-git/msw-ai-coding-plugins-official --skill msw-sprite-ruid
compare_arrows

Before / After 効果比較

1
使用前

この Skill がない場合、開発者は異なる種類のゲームアセット(スケルトンアニメーション、アバターアイテムなど)を静的アイコンとして表示したり、アニメーションを直接再生したりするために、複雑なレンダリングロジックや追加コンポーネントを実装する必要がありました。これにより、特にインベントリアイテムのアイコン処理において、開発プロセスが冗長でエラーが発生しやすく、手動での変換や大量のリソース管理が必要でした。

使用後

この Skill を使用すると、開発者は sprite または animationclip の RUID をレンダラーコンポーネントに直接割り当てることで、アニメーションや静止画像を即座に表示できます。"thumbnail://" プレフィックスを使えば、この Skill は任意のリソース(skeleton や avataritem を含む)を静的サムネイルとして一括でレンダリングでき、ゲーム内アイコン(インベントリスロットアイコンなど)の生成と管理を大幅に簡素化し、開発時間を数時間から数分に短縮します。

SKILL.md

MSW Sprite RUID

Rules for assigning a RUID to SpriteRendererComponent.SpriteRUID (world) or SpriteGUIRendererComponent.ImageRUID (UI).


Native type support

Both components accept a sprite or animationclip RUID directly — no extra animator component required.

ComponentPropertyValue formNative RUID types
SpriteRendererComponent (world)SpriteRUIDplain stringsprite, animationclip
SpriteGUIRendererComponent (UI)ImageRUID{ "DataId": "..." }sprite, animationclip
-- World: sprite or animationclip RUID both work
self.Entity.SpriteRendererComponent.SpriteRUID = ruid

-- UI: sprite or animationclip RUID both work
self.Entity.SpriteGUIRendererComponent.ImageRUID = { DataId = ruid }

A skeleton / avataritem RUID assigned without the thumbnail:// prefix fails silently (no error, nothing renders).


animationclip: single animation vs multi-state

  • Single looping animation (background deco, idle effect, prop): set SpriteRUID or ImageRUID directly to the animationclip RUID.
  • Multi-state (stand / move / attack / hit / die): use StateAnimationComponent + ActionSheet. See msw-general/references/monster.md.

thumbnail:// prefix — static thumbnail from any resource

Prepend thumbnail:// to SpriteRUID or ImageRUID to render a static thumbnail image from any resource — useful for icons, preview images, and item thumbnails.

thumbnail://<32-char hex RUID>

Accepted types: sprite · animationclip · skeleton · avataritem

-- World thumbnail (any resource type)
self.Entity.SpriteRendererComponent.SpriteRUID = "thumbnail://" .. anyRuid

-- UI thumbnail (any resource type)
self.Entity.SpriteGUIRendererComponent.ImageRUID = { DataId = "thumbnail://" .. anyRuid }

Primary use case: avataritem icons

avataritem RUIDs cannot render without thumbnail://. With the prefix they become item icons for inventory slots, shop listings, and equip previews.

slotEntity.SpriteGUIRendererComponent.ImageRUID = {
    DataId = "thumbnail://" .. avatarItemRuid,
}

Search avatar item RUIDs with the msw-search skill (searchAvatarItems).


Common pitfalls

  • skeleton / avataritem directly into SpriteRUID / ImageRUID without prefix → silently invisible.
  • thumbnail:// = static image only. For live animation, assign the animationclip RUID directly (no prefix).
  • ImageRUID prefix goes inside DataId: { "DataId": "thumbnail://..." } — not a separate field.
  • CostumeManagerComponent.Custom*Equip, StateAnimationComponent.ActionSheet, and SkeletonRendererComponent.SkeletonRUID do not accept thumbnail://.
  • Do not prepend thumbnail:// to a RUID that was already retrieved as a thumbnail or icon image from msw-search. The prefix converts a source resource into its thumbnail — applying it to an already-thumbnail sprite is logically redundant. If the search query targeted an icon / thumbnail image and returned a sprite RUID, assign that RUID directly without any prefix.
  • To search for RUIDs use the msw-search skill — searchAvatarItems for avatar items; searchResources for everything else.

ユーザーレビュー (0)

レビューを書く

効果
使いやすさ
ドキュメント
互換性

レビューなし

統計データ

インストール数2.6K
評価4.4 / 5.0
バージョン
更新日2026年7月10日
比較事例1 件

ユーザー評価

4.4(120)
5
37%
4
43%
3
13%
2
5%
1
2%

この Skill を評価

0.0

対応プラットフォーム

🤖claude-code

タイムライン

作成2026年6月21日
最終更新2026年7月10日
🎁 Agent 知識カード
アンケート