This one handles the specifics of assigning RUIDs to sprite renderers in MSW, both for world entities (SpriteRendererComponent.SpriteRUID) and UI elements (SpriteGUIRendererComponent.ImageRUID). The main thing to know is that sprite and animationclip RUIDs work natively, but avataritem and skeleton resources need the thumbnail:// prefix or they fail silently. You'll use this when building inventory UIs, shop slots, or any time you need to show item icons as static thumbnails. The documentation is clear about the DataRef wrapper for UI contexts and warns against double-prefixing thumbnails that are already thumbnail sprites. It's narrowly scoped but covers the common gotchas around RUID type compatibility and the difference between live animation playback versus static preview rendering.

skills.sh installs
10.5K
GitHub stars
38
last updated
Aug 21, 2026

Install

$ npx -y skills add msw-git/msw-ai-coding-plugins-official --skill msw-sprite-ruid --agent claude-code

Installs into .claude/skills of the current project.

Files

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 form (runtime .mlua)Native RUID types
SpriteRendererComponent (world)SpriteRUIDplain stringsprite, animationclip
SpriteGUIRendererComponent (UI)ImageRUIDDataRef("...")sprite, animationclip

ImageRUID is a DataRef: in runtime .mlua, assign DataRef(ruid). Use { DataId: ruid } only in .ui / .model JSON or builder patch data. SpriteRUID remains a plain string.

-- World: sprite or animationclip RUID both work
self.Entity.SpriteRendererComponent.SpriteRUID = ruid

-- UI: sprite or animationclip RUID both work
self.Entity.SpriteGUIRendererComponent.ImageRUID = DataRef(ruid)

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


animationclip: single animation vs multi-state

Sponsors

Details

Repository
github.com/msw-git/msw-ai-coding-plugins-official
Categories
Frontend Development, Git & Pull Requests, AI & Agent Building, Game Development
First seen
Jul 14, 2026

More from msw-git/msw-ai-coding-plugins-official

All 12
1deeflect avatarmiesdeeflect/miesUse this skill when creating, redesigning, critiquing, reducing, polishing, hardening, or making design decisions for a user-facing interface, brand surface, pr10.5Kskills.sh installs
2dimillian avatarswiftui-performance-auditdimillian/skillsAudit and improve SwiftUI runtime performance from code review and architecture. Use for requests to diagnose slow rendering, janky scrolling, high CPU/memory u10.4Kskills.sh installs
3ljagiello avatarctf-webljagiello/ctf-skillsProvides web exploitation techniques for CTF challenges. Use when the target is primarily an HTTP application, API, browser client, template engine, identity fl10.3Kskills.sh installs
4nomadamas avatarrhwp-advancednomadamas/k-skillDebug HWP layout, dump document IR, compare versions, extract thumbnails, and unlock read-only HWPs with the upstream rhwp Rust CLI (export-svg/dump/dump-pages/10.3Kskills.sh installs
5jeffallan avatarwordpress-projeffallan/claude-skillsDevelops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress RES10.2Kskills.sh installs
6manaflow-ai avatarcmuxmanaflow-ai/cmuxEnd-user control of cmux topology and routing (windows, workspaces, panes/surfaces, focus, moves, reorder, identify, trigger flash). Use when automation needs d10.1Kskills.sh installs