A downloadable Plug-in

Download NowName your own price

Check out the code repository.

Godot plugin to easily add node references to scripts and copy the variable name to your clipboard.

Example

onready var _animated_sprite: AnimatedSprite = $AnimatedSprite

Overview Gif

Usage

Check out the video tutorial.

  1. Select one or more nodes. There will be a dropdown menu in the scene toolbar if the plugin detects that one of the node's parents has a script. The plugin will scan recursively up the tree.
  2. Select the parent to which you want to add the reference.
  3. Select the last option to copy the last created reference's variable name.
  4. Reload the parent script by closing it and reopening it. For some reason, I can't get it to reload automatically.
  5. Now you can use that variable.

Usage

Features

  • Add a reference for a node to one of its parents' script.
  • Add references for multiple nodes at once.
  • Copy the name of the last made reference.
  • Makes sure the reference has the appropriate class. Works with custom class_names and extends.
  • Prevents duplicate references.
  • Enumerates variable names when there is a conflict in naming.
  • Sorts references alphabetically.

Download

Download NowName your own price

Click download now to get access to the following files:

node-referencer.zip 5 kB

Leave a comment

Log in with itch.io to leave a comment.