Create Code Template
godot_create_code_templateCreate GDScript code from predefined templates for CharacterBody2D, CharacterBody3D, node, resource, or state machine scripts. Specify template type and class name to generate ready-to-use Godot scripts.
Instructions
Create code from a template.
Template types:
character_body_2d: CharacterBody2D script
character_body_3d: CharacterBody3D script
node: Basic node script
resource: Custom resource script
state_machine: State machine script
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the class | |
| project_path | No | Optional project root | |
| template_type | Yes | Type of template |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |