Automatic-DynamicBone
Automatic-DynamicBone copied to clipboard
请问哪个Unity版本可以正常运行啊,2019和2021都有问题
试了2个Unity版本 Unity 2019.4.33f1 可以运行,但结束运行时报以下错误
InvalidOperationException: The previously scheduled job ADBRunTimeJobsTable:ConstraintForceUpdateByPoint reads from the NativeArray ConstraintForceUpdateByPoint.constraintsRead. You must call JobHandle.Complete() on the job ADBRunTimeJobsTable:ConstraintForceUpdateByPoint, before you can deallocate the NativeArray safely.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <e395ed1557354db1a729173c553a159b>:0)
Unity.Collections.LowLevel.Unsafe.DisposeSentinel.Dispose (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& safety, Unity.Collections.LowLevel.Unsafe.DisposeSentinel& sentinel) (at <e395ed1557354db1a729173c553a159b>:0)
Unity.Collections.NativeMultiHashMap`2[TKey,TValue].Dispose () (at Library/PackageCache/[email protected]/Unity.Collections/NativeHashMap.cs:749)
ADBRuntime.ADBPhysicsKernel.Dispose () (at Assets/Automatic Dynaimc Bone/Runtime/ADBPhysicsKernel.cs:325)
ADBRuntime.Mono.ADBRuntimeController.OnDestroy () (at Assets/Automatic Dynaimc Bone/Runtime/ADBRuntimeController.cs:137)
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
Unity 2021.3.8f1,编译失败,报以下错误
Library\PackageCache\[email protected]\Unity.Jobs\IJobParallelForDefer.cs(73,85): error CS8377: The type 'U' must be a non-nullable value type, along with all fields at any level of nesting, in order to use it as parameter 'T' in the generic type or method 'NativeList<T>'
您好,问题已经收到,抱歉因为回复的太晚. 我下载了unity 2021.3并进行调试,我认为,编译报错的主要原因为当前Unity版本无法兼容Job版本为0.2.10-preview.13. 需要解决这个问题,请查看https://forum.unity.com/threads/unity-collections-1-0-0-pre-3.1138633/ 如果仍然没有解决,可以继续回复这个issue 😃