Godot: Get node by type method

Created on 28 Jan 2015  路  2Comments  路  Source: godotengine/godot

Is it possible to find a node / child by class rather than name?

Most helpful comment

Update for future googlers: extends is now is

All 2 comments

var n=[]
for c in get_children():
    if c extends DesiredClass:
        n.append(c)

Update for future googlers: extends is now is

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ducdetronquito picture ducdetronquito  路  3Comments

timoschwarzer picture timoschwarzer  路  3Comments

testman42 picture testman42  路  3Comments

nunodonato picture nunodonato  路  3Comments

mefihl picture mefihl  路  3Comments