Godot开发问题记录:C#项目出现报错“Parent node is busy setting up children, `add_child()` failed.“
·
Godot C#开发时,在_Ready函数中调用ParentNode.AddChild(ChildNode)时出现报错:
“Parent node is busy setting up children, `add_child()` failed. Consider using `add_child.call_deferred(child)` instead.
可以尝试使用如下语句:
ParentNode.CallDeferred("add_child",ChildNode);
更多推荐
所有评论(0)