A*算法:The thread was created with a ThreadStart delegate that does not accept a parameter.报错解决

在Unity中使用A*Start插件时,进行版本升级遇到了InvalidOperationException报错,具体是由于ThreadStart委托创建线程时未接受参数导致。文章提供了解决这一问题的方法,涉及Pathfinding.GraphUpdateProcessor.EnableMultithreading()函数的调整以及AstarPath初始化过程中的处理。
摘要由CSDN通过智能技术生成

Unity中A*Start插件Unity版本升级报错
在这里插入图片描述

Error:
InvalidOperationException: The thread was created with a ThreadStart delegate that does not accept a parameter.
System.Threading.Thread.Start (System.Object parameter) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/threading/thread.cs:329)
Pathfinding.GraphUpdateProcessor.EnableMultithreading () (at Assets/Plugins/AstarPathfindingProject/Core/Misc/GraphUpdateProcessor.cs:98)
AstarPath.InitializePathProcessor () (at Assets/Plugins/AstarPathfindingProject/Core/AstarPath.cs:1193)
AstarPath.Awake () (at Assets/Plugins/AstarPathfindingProject/Core/AstarPath.cs:1149)
修改方法:在这里插入图片描述

链接: UnityThe thread was created with a ThreadStart delegate that does not accept a parameter.报错解决原文链接

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值