Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Drawsi |
I tried multiple ways of declaring the ‘i’ or ‘_i’ but it just isn’t working
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Drawsi |
I tried multiple ways of declaring the ‘i’ or ‘_i’ but it just isn’t working
Reply From: | Ninfur |
get_children() returns an array of the child nodes, not an integer.
I believe you can just do this:
for child in lines.get_children():
ray_col_check(child)
If you for some reason need an integer, use get_child_count() instead
for i in lines.get_child_count():
ray_col_check(lines.get_child(i))