Skip to content

Code Generation

Use the Code Generator to scaffold new scripts from a text description.

  1. Open the Command Palette (Ctrl+Shift+P)
  2. Type “Generate Script”
  3. Describe what you need (e.g., “A player health system with damage and heal methods”)
  4. Review the generated code and confirm

The generator understands Unity patterns:

  • MonoBehaviour scripts
  • ScriptableObject data assets
  • Editor scripts and custom inspectors
  • Shader code (HLSL/ShaderLab)