add_autoload
Configure autoload singletons in Godot projects to automatically instantiate scripts or scenes when the project starts.
Instructions
Add or update an autoload (singleton) in the project settings. The script will be instantiated automatically when the project starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| name | Yes | Autoload node name (valid identifier, e.g. "GameManager") | |
| scriptPath | Yes | Script or scene path (res:// or relative) | |
| enabled | No | Whether the autoload is active (default: true) |