C# for Unity
C# in Unity — MonoBehaviour lifecycle, serialization rules, coroutines vs async/Awaitable, allocation-free hot paths, events, object pooling, null-check pitfalls, and Editor scripting conventions.
What it does
C# in Unity — MonoBehaviour lifecycle, serialization rules, coroutines vs async/Awaitable, allocation-free hot paths, events, object pooling, null-check pitfalls, and Editor scripting conventions.
- Category
- gameunitylanguage
- Platforms
- androidioswindowsmacoswebgl
- Frameworks and tools
- unitycsharpunitask
- Capabilities
- code-generationreviewrefactoring
Example tasks
- “Refactor a Find-and-Update-heavy MonoBehaviour into serialized references, events and pooling.”
- “Replace allocating coroutines and LINQ in a hot path with allocation-free code.”
- “Write an async scene loading flow with cancellation tied to object lifetime.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (65 lines in total).
- 01C# for Unity
- 021. Lifecycle and structure
- 032. Serialization and inspector
- 043. Unity's null and lifetime rules
- 054. Async
- 065. Allocation-free hot paths
- 076. Events and architecture
- 087. Editor code
- 09Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — C# for Unity
1.0.0
- Initial release.