Hello, I have pretty similar error in Godot 4.2
I used get_children(), but it gave me:
MyScriptNameHere.gd:25 @ _thread_process(): Caller thread can't call this function in this node (/root/World/Chunks). Use call_deferred() or call_thread_group() instead.
error
Okay, maybe I should try both? I tried, and I have now:
Unable to iterate on object of type 'Nil'.
from call_deferred("get_children")
and the same error from call_deferred_thread_group("get_children")...
I don't know how to fix error
pls help