agentleFS
hoatv2211hoatv2211/GameStudio-CodexKIT/skills/unity-ui-rendering-debugging/SKILL.md

unity-ui-rendering-debugging

Skill5 starsChanged 3 months agoMITView on GitHub

Use when a Unity UI, HUD, screen item, or NGUI widget is missing, clipped, behind another canvas, wrongly sorted, disconnected from a prefab or atlas, misanchored, or invisible despite correct gameplay state.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when a known UI state should render but a widget, item, canvas, prefab, atlas sprite, anchor, mask, or sorting layer is wrong or …

    line 35
  2. Distinctive:

    Do not use when the Unity client never reaches the offline/gameplay state, login/bootstrap fails, or network fallback is the primary …

    line 38
  3. Distinctive:

    Read-only diagnosis first.

    line 44
  4. Distinctive:

    Do not blame draw order before proving the object exists and is active.

    line 65
  5. Distinctive:

    Do not reimport or resave assets as a diagnostic shortcut.

    line 66
  6. Very specific:

    Do not change .meta or GUID files outside exact scope.

    line 67
  7. Distinctive:

    Read references/commands.md for stack detection markers, serialized-value inspection, runtime probes, camera culling checks, and the …

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unity UI Rendering Debugging

Overview

Separate data/state problems from hierarchy, activation, geometry, clipping, material, atlas, camera, canvas, and NGUI depth problems before editing assets.

When to use

Use when a known UI state should render but a widget, item, canvas, prefab, atlas sprite, anchor, mask, or sorting layer is wrong or invisible.

When NOT to use

Do not use when the Unity client never reaches the offline/gameplay state, login/bootstrap fails, or network fallback is the primary symptom.

Required inputs and context discovery

Collect Unity and UI framework versions, hierarchy path, prefab source, expected data/state, activation state, canvas/camera, layer, sorting order or NGUI depth, clipping/mask chain, material/atlas, anchors, and no-touch asset rules.

Safety and risk level

Read-only diagnosis first. Do not save scenes or prefabs, reimport assets, change GUID/meta files, upgrade UI packages, or batch-reserialize without scoped mutation and backup.

Workflow

  1. Prove the underlying data and state say the item should exist. Completion criterion: rendering is isolated from business logic or routed elsewhere.
  2. Trace hierarchy presence, active state, scale, position, and parent clipping. Completion criterion: the first invisible transform or activation condition is identified.
  3. Inspect canvas/camera/layer/sorting or NGUI panel and widget depth. Completion criterion: render-order conflicts are supported by values, not screenshots alone.
  4. Inspect prefab links, materials, atlases, sprite names, masks, and anchors. Completion criterion: missing or stale asset references are named with paths.
  5. Define the smallest reversible change and verification scene or fixture. Completion criterion: any asset edit routes through safe-project-mutation.

Evidence and output contract

Produce hierarchy path, state proof, render-order values, clipping chain, prefab/material/atlas references, suspect cause, proposed minimal change, and verification plan.

Handoff contract

Record scene/prefab paths, hierarchy, framework version, expected state, inspected render values, asset references, no-touch paths, and the next reversible experiment.

Pitfalls and anti-rationalization

  • Do not blame draw order before proving the object exists and is active.
  • Do not reimport or resave assets as a diagnostic shortcut.
  • Do not change .meta or GUID files outside exact scope.
  • Missing Unity Editor access is BLOCKED for visual confirmation.

Verification checklist

  • Data/state and rendering were separated.
  • Hierarchy and activation were inspected.
  • Canvas/NGUI order and clipping were measured.
  • Prefab/material/atlas references were checked.
  • Any proposed edit is reversible and scoped.

References and scripts

Read references/commands.md for stack detection markers, serialized-value inspection, runtime probes, camera culling checks, and the diagnostic order that avoids false draw-order root causes. Use project scenes, prefabs, UI framework docs already vendored in the project, and Unity logs. Avoid package upgrades during diagnosis.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.