Node paths - find any node in your Godot scene (Beginners)

Опубликовано: 23 Август 2023
на канале: Godotneers
34,868
2.2k

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/stabl...


Смотрите видео Node paths - find any node in your Godot scene (Beginners) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Godotneers 23 Август 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 34,868 раз и оно понравилось 2.2 тысяч людям.