Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser
Quick Information
A small code generation tool, which inserts `onready var` statements for the selected nodes into a root node script. Works for GDScript and C#.
godot-vargen
This is a simple code generation Godot plugin, which generates onready var <node_name>: <node_type> = $"<node_path>
declarations for each selected node.
Installation
- Download this repository and add its
addons
contents to youraddons
project folder. - Activate VarGen in Project > Project Settings > Plugins
Usage
- Once activated, look for VarGen dock with a button (bottom-right dock slot by default).
- Select one or more nodes in you scene explorer.
- Press the vargen button.
The script will create an onready var
statement for each selected node, and insert them into the root node's script. Check the output for errors if nothing happens.
Important
- ⚠️ This script modifies actual script files on the filesystem, unsaved changes might be lost.
- ⚠️ This script uses an undocumented API to reload scripts in the editor.
Credits
- 🎨 icon_GUI_tree_arrow_right.svg and icon_GUI_tree_arrow_down.svg from Godot editor sources.
A small code generation tool, which inserts `onready var` statements for the selected nodes into a root node script. Works for GDScript and C#.
Reviews
Quick Information
A small code generation tool, which inserts `onready var` statements for the selected nodes into a root node script. Works for GDScript and C#.