欢迎光临散文网 会员登陆 & 注册

错误 area_set_shape_disabled: Can't change this state while flushi

2022-05-17 18:28 作者:Nimanggi  | 我要投稿

在Godot中, 直接调用方法去  修改secne_tree (添加、删除子节点),  处理图形碰撞等都会造成线程不安全,以至报错:area_set_shape_disabled: Can't change this state while flushing queries. Use call_deferred() or set_deferred() to change monitoring state instead. 


简单的处理办法就是使用 call_deferred() 调用想要执行的内容。如:


错误 area_set_shape_disabled: Can't change this state while flushi的评论 (共 条)

分享到微博请遵守国家法律