Archive 17/01/2023.

Getting node by name

rogerdv

After a quick look at docs, I couldnt find a way to get a node from the scene by its name, is that possible?

friesencr

Scene or Node have a method called GetNode(String name, bool recursive)

Mike

Take also a look at GetChild() function (it is used in various samples).

rogerdv

According to docs, scene doesnt has such GetNode implementation, only one that uses node id. But node does has GetChild in all flavours.

weitjong

Scene inherits all the GetChild() methods from Node class.