Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

NodePath Tracker

An asset by henriquelalves
The page banner background of a mountain and forest
NodePath Tracker hero image

Quick Information

0 ratings
NodePath Tracker icon image
henriquelalves
NodePath Tracker

A node to track and update in real-time the NodePath of selected Nodes in the scene.

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

NodePathTracker

A node to track and update in editor-time the NodePath of selected Nodes in the scene.

Tracking NodePaths in realtime:

README

Sanity checking NodePaths for empty references:

README

How to install

Add the addon on your Godot project (you may copy the addon from this project folder, or install it via AssetLib). Then activate it on the project settings "Plugins" tab.

How to use it

The addon will create a new node to use called "NodePathTracker", which inherits "Node". The NodePathTracker has an array of editable NodePaths that once set, will always update the paths of the nodes, even when you change them in the editor or rename them. To get those referenced nodes, you can call the get_nodes (returns the corresponding array of Nodes) or get_node_by_name (returns the first node with the name being looked for, null otherwise).

Why using it

I have some Unity experience, and one thing in Godot that I didn't like was the fact that I couldn't reference other nodes via code without having to update those references everytime I changed the layout of the scene; so I created the most straightforward solution to the problem, to be able to use it as a 'Scene NodePath dictionary', or locally in individual nodes that I want to track.

A node to track and update in real-time the NodePath of selected Nodes in the scene.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
NodePath Tracker icon image
henriquelalves
NodePath Tracker

A node to track and update in real-time the NodePath of selected Nodes in the scene.

Supported Engine Version
3.2
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
5 years ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers