add_script_export
Add @export annotations to GDScript variables, making them configurable in the Godot Inspector. Accepts optional type hints, export hints, and default values for precise editor control.
Instructions
Add @export variable to GDScript.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to .gd script file | |
| var_name | Yes | Variable name | |
| var_type | No | Type hint | |
| export_hint | No | Export hint (e.g. "int, 0, 100") | |
| default_value | No | Default value |