赞
踩
异常信息具体如下:
InvalidOperationException: Burst failed to compile the function pointer `Int32 ValidateCollinear$BurstManaged(Unity.Mathematics.float2*, Int32, Single)`
Unity.Burst.BurstCompiler.Compile (System.Object delegateObj, System.Reflection.MethodInfo methodInfo, System.Boolean isFunctionPointer, System.Boolean isILPostProcessing) (at Library/PackageCache/com.unity.burst@1.8.4/Runtime/BurstCompiler.cs:465)
Unity.Burst.BurstCompiler.CompileILPPMethod2 (System.RuntimeMethodHandle burstMethodHandle) (at Library/PackageCache/com.unity.burst@1.8.4/Runtime/BurstCompiler.cs:226)
UnityEditor.U2D.Animation.TriangulationUtility+ValidateCollinear_0000072E$BurstDirectCall.Constructor () (at <041734514971422b990000a1a12760aa>:0)
UnityEditor.U2D.Animation.TriangulationUtility+ValidateCollinear_0000072E$BurstDirectCall..cctor () (at <041734514971422b990000a1a12760aa>:0)
Rethrow as TypeInitializationException: The type initializer for 'UnityEditor.U2D.Animation.ValidateCollinear_0000072E$BurstDirectCall' threw an exception.
$BurstDirectCallInitializer.Initialize () (at <041734514971422b990000a1a12760aa>:0)
重点看InvalidOperationException: Burst failed to compile the function pointer `Int32
说明输入有问题,这是因为unity版本和输入系统版本不匹配导致,输入系统版本旧了
解决:
edit==>project settings ==> Player ==> other settings ==> Active Input Handling
设置成新版 或者 both就可以!
根据你的项目需要和使用的 Unity 版本,选择不同的选项可能会对输入系统产生影响,例如:
无论你选择哪个选项,你都需要相应地更新和配置你的输入系统,以确保它可以与你的项目一起正常工作。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。