Update Documentation
Update the hand-written guides in docs/ to reflect code changes.
Critical Rule
NEVER touch docs/api/ — that directory is auto-generated from XML doc comments by a CI workflow on each release. Do not edit, regenerate, or reference its contents as a source of truth for writing guides.
Step 1: Identify What Changed
Read the code changes (new files, modified files, git diff) to understand:
- What user-facing APIs or behaviors were added/changed/removed?
- Are there new public types, methods, properties, or parameters?
- Were any existing signatures changed (renamed, removed, new required params)?
Step 2: Find Affected Docs
The hand-written docs live in docs/. Use this mapping to find the right file:
| Topic |
File |
| Rigidbodies, colliders, raycasting, triggers, character controller |
docs/physics.md |
| Custom components, lifecycle, game assemblies |
docs/scripting.md |
| Built-in component reference (properties tables) |
docs/components.md |
| Editor panels, shortcuts, workflows |
docs/editor-guide.md |
| Audio playback, buses, attenuation |
docs/audio.md |
| Lighting, materials, post-processing |
docs/rendering.md |
| UI system |
docs/ui.md |
| Prefabs, entity references |
docs/prefabs.md |
| Export pipeline, packaging |
docs/exporting.md |
| Project settings files |
docs/project-settings.md |
| First-time setup |
docs/getting-started.md |
| Common issues |
docs/troubleshooting.md |
| Docs index / table of contents |
docs/README.md |
| Future plans |
docs/roadmaps/*.md |
If a change spans multiple topics, update all relevant files.
Step 3: Read the Existing Section
Read the target doc file before editing. Understand:
- Where the relevant section is (or where a new section should go)
- The style and depth of surrounding content
- Whether tables, code blocks, or prose are used for similar content
Step 4: Write the Update
Follow the existing style of the document. General conventions:
Audience
These docs are for game developers using the engine, not engine contributors. Write from the perspective of someone building a game:
- Focus on what developers can do — public API, usage patterns, configuration options
- Skip internal implementation details — don't mention internal classes, private fields, engine subsystem wiring, or how systems work under the hood unless it directly affects how the developer uses the feature
- Explain "why" only when it affects usage — e.g., "Layout uses flexbox, so children flow like CSS flex containers" is useful. "Layout syncs styles to Yoga nodes then reads back computed rects" is not.
- Don't document internal types — if a class is
internal, it doesn't belong in the docs
- Keep code examples practical — show realistic game scenarios (HUD, menu, gameplay), not engine test harnesses
Style
- Code examples: Use fenced C# blocks with
using statements when showing API usage for the first time in a section
- Property tables: Use
| Property | Default | Description | format
- Type/field tables: Use
| Field | Type | Description | format
- Section hierarchy:
## for major topics, ### for subtopics within them
- Tone: Direct, concise, second-person ("Add a component", "Cast a ray")
- Removed APIs: Delete the old documentation entirely — do not leave stubs or deprecation notes unless backward compatibility shims exist in code
- New sections: Place them in logical order relative to existing content (e.g., a new raycast filtering section goes inside the existing Raycasting section, not at the end of the file)
Step 5: Update docs/README.md If Needed
If a new guide file was created, or if an existing guide's scope changed significantly, update the tables in docs/README.md to reflect it.
Checklist
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: update-docs-163description: Update hand-written documentation in docs/. Use when adding features, changing APIs, or modifying user-facing behavior that needs documentation updates. Covers physics, scripting, components, editor, and all other guide pages. Use when this capability is needed.4---56# Update Documentation78Update the hand-written guides in `docs/` to reflect code changes.910## Critical Rule1112**NEVER touch `docs/api/`** — that directory is auto-generated from XML doc comments by a CI workflow on each release. Do not edit, regenerate, or reference its contents as a source of truth for writing guides.1314## Step 1: Identify What Changed1516Read the code changes (new files, modified files, git diff) to understand:17- What user-facing APIs or behaviors were added/changed/removed?18- Are there new public types, methods, properties, or parameters?19- Were any existing signatures changed (renamed, removed, new required params)?2021## Step 2: Find Affected Docs2223The hand-written docs live in `docs/`. Use this mapping to find the right file:2425| Topic | File |26|-------|------|27| Rigidbodies, colliders, raycasting, triggers, character controller | `docs/physics.md` |28| Custom components, lifecycle, game assemblies | `docs/scripting.md` |29| Built-in component reference (properties tables) | `docs/components.md` |30| Editor panels, shortcuts, workflows | `docs/editor-guide.md` |31| Audio playback, buses, attenuation | `docs/audio.md` |32| Lighting, materials, post-processing | `docs/rendering.md` |33| UI system | `docs/ui.md` |34| Prefabs, entity references | `docs/prefabs.md` |35| Export pipeline, packaging | `docs/exporting.md` |36| Project settings files | `docs/project-settings.md` |37| First-time setup | `docs/getting-started.md` |38| Common issues | `docs/troubleshooting.md` |39| Docs index / table of contents | `docs/README.md` |40| Future plans | `docs/roadmaps/*.md` |4142If a change spans multiple topics, update all relevant files.4344## Step 3: Read the Existing Section4546Read the target doc file before editing. Understand:47- Where the relevant section is (or where a new section should go)48- The style and depth of surrounding content49- Whether tables, code blocks, or prose are used for similar content5051## Step 4: Write the Update5253Follow the existing style of the document. General conventions:5455### Audience5657These docs are for **game developers using the engine**, not engine contributors. Write from the perspective of someone building a game:5859- **Focus on what developers can do** — public API, usage patterns, configuration options60- **Skip internal implementation details** — don't mention internal classes, private fields, engine subsystem wiring, or how systems work under the hood unless it directly affects how the developer uses the feature61- **Explain "why" only when it affects usage** — e.g., "Layout uses flexbox, so children flow like CSS flex containers" is useful. "Layout syncs styles to Yoga nodes then reads back computed rects" is not.62- **Don't document internal types** — if a class is `internal`, it doesn't belong in the docs63- **Keep code examples practical** — show realistic game scenarios (HUD, menu, gameplay), not engine test harnesses6465### Style6667- **Code examples**: Use fenced C# blocks with `using` statements when showing API usage for the first time in a section68- **Property tables**: Use `| Property | Default | Description |` format69- **Type/field tables**: Use `| Field | Type | Description |` format70- **Section hierarchy**: `##` for major topics, `###` for subtopics within them71- **Tone**: Direct, concise, second-person ("Add a component", "Cast a ray")72- **Removed APIs**: Delete the old documentation entirely — do not leave stubs or deprecation notes unless backward compatibility shims exist in code73- **New sections**: Place them in logical order relative to existing content (e.g., a new raycast filtering section goes inside the existing Raycasting section, not at the end of the file)7475## Step 5: Update docs/README.md If Needed7677If a new guide file was created, or if an existing guide's scope changed significantly, update the tables in `docs/README.md` to reflect it.7879## Checklist8081- [ ] Only hand-written docs in `docs/` were edited (not `docs/api/`)82- [ ] Code examples compile and use current API signatures83- [ ] No references to removed/old API signatures remain84- [ ] Property/field tables match the actual code85- [ ] New sections are placed logically within existing structure86- [ ] `docs/README.md` index is up to date if guides were added/renamed8788---89> Converted and distributed by [TomeVault](https://tomevault.io/claim/frinky04) — claim your Tome and manage your conversions.90<!-- tomevault:4.0:skill_md:2026-04-16 -->