Code Generation
Use the Code Generator to scaffold new scripts from a text description.
- Open the Command Palette (
Ctrl+Shift+P) - Type “Generate Script”
- Describe what you need (e.g., “A player health system with damage and heal methods”)
- Review the generated code and confirm
Templates
Section titled “Templates”The generator understands Unity patterns:
- MonoBehaviour scripts
- ScriptableObject data assets
- Editor scripts and custom inspectors
- Shader code (HLSL/ShaderLab)