📜  godot find_node() - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:26.597000             🧑  作者: Mango

代码示例1
find_node (String mask, bool recursive=true, bool owned=true )


Finds a descendant of this node whose name matches mask as in String.match (i.e. case-sensitive, but "*" matches zero or more characters and "?" matches any single character except ".").
Note: It does not match against the full path, just against individual node names.
If owned is true, this method only finds nodes whose owner is this node. This is especially important for scenes instantiated through a script, because those scenes don’t have an owner.