Node Paths in Godot: Access Nodes via Script

Learn how to find and modify other nodes in your Godot scene using node paths. A beginner's guide to scene node access in Godot. ๐Ÿ”ง

Node Paths in Godot: Access Nodes via Script
Godotneers
43.8K views โ€ข Aug 24, 2023
Node Paths in Godot: Access Nodes via Script

About this video

Hello Godotneers! One of the most asked questions in the Godot discord is: "How can I change a property of another node through a script?". Accessing other nodes is a fundamental technique needed in every Godot game. In this video we'll explore how you can access any node anywhere in your scene no matter where it is located in the tree. And we'll check out a seriously awesome technique to make this even easier and more robust.

Chapters
--------------------

00:00 Introduction
00:36 Finding nodes below the current one
04:57 Finding nodes above the current one
07:01 Finding sibling nodes
07:50 Accessing the current node
08:45 A better way to do all this
11:02 Conclusion

Useful links
---------------------

NodePath reference page: https://docs.godotengine.org/en/stable/classes/class_nodepath.html

Tags and Topics

Browse our collection to discover more content in these categories.

Video Information

Views

43.8K

Likes

2.6K

Duration

11:55

Published

Aug 24, 2023

User Reviews

4.7
(8)
Rate:

Related Trending Topics

LIVE TRENDS

Related trending topics. Click any trend to explore more videos.