unity-editor-gotchas
Skill0 starsChanged 13 days agoMITView on GitHub
Unity Editor behaviours that look like code bugs but are not — environment symptoms that send people hunting through a codebase that was never wrong. Read BEFORE investigating rendering, lighting, shading, or reimport symptoms reported from the Editor, and whenever a symptom appears only in the Editor and not in a build: "todo se ve negro", "black meshes", "lighting broke", "solo pasa en el editor", "se rompió después de darle play", unexplained reimports, or a symptom that appeared without a code change.
In this repository7 other files it gives its agents.
- architecture-evaluationSkill
- debuggingSkill
- engineering-guidelinesSkill
- findings-logSkill
- gamedev-client-architectureSkill
- planningSkill
- tech-debt-logSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 33
Diagnosis first: if black meshes show up, grep Editor.log for a RefreshV2 before blaming the code.
≈ “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.
Files
Unity Editor gotchas
Environment behaviour, not code. Do not chase these in the codebase.
The tell is always the same: a symptom that appears without a corresponding change, or that only reproduces in the Editor. Check this list before opening a single script — each entry here cost someone hours first.
Everything renders black in the Editor (reviewed 2026-08-10)
Editing any asset or script while in Play Mode makes Unity reimport on focus return,
which shows up in Editor.log as Asset Pipeline Refresh ... Initiated by RefreshV2.
That reimport invalidates the lighting references of the scenes already loaded, so meshes
go black from that moment on.
Setting Script Changes While Playing to Recompile After Finished Playing does not
prevent it: that only defers assembly reload, not the asset import.
- Fix while working: turn off
Preferences > Asset Pipeline > Auto Refreshduring render QA, or just restart Play Mode. - Diagnosis first: if black meshes show up, grep
Editor.logfor aRefreshV2before blaming the code.
It cost an afternoon once, chased through the scene unload path, until the timestamps in the log gave it away — the reimport had happened right before the first black frame.
Adding an entry
One ## per symptom, phrased as the symptom rather than the cause — that is how it will
be searched for. State the mechanism, then what does not fix it (the plausible wrong
fix people try first), then the actual workaround and the log line that confirms the
diagnosis. Date it with the last time it was confirmed against a Unity version.
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
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.

