编译不过呀
compile errors:(unity:2021.3.2f1c1)
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>'
Blender could not be found.
Make sure that Blender is installed and the .blend file has Blender as its 'Open with' application!
Unexpected exception System.DllNotFoundException: Unable to load the unmanaged library /Users/zego/Documents/unityStudy/Automatic-DynamicBone-master/ADB Unity Project/Library/BurstCache/JIT/a821eda026562204d491763fb0fecdee.bundle
at Burst.Backend.UnmanagedLibrary+MacOSUnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x0006d] in <9804af65145d4f02b8d9599bb5ca7619>:0
at Burst.Backend.UnmanagedLibrary.LoadLibrary (System.String name, System.Boolean addPlatformPrefix, System.Boolean addPlatformFileExtension) [0x00020] in <9804af65145d4f02b8d9599bb5ca7619>:0
at Burst.Compiler.IL.Jit.JitCacheLibraryManager.TryGetOrLoadLibrary (System.String libraryPath, Burst.Compiler.IL.Jit.GetExternalFunctionPointerDelegate getExternalFunctionPointer, System.Action& invokeBurstInitialize, System.IntPtr& libraryPtr, System.Boolean onlyAlreadyLoadedLibraries) [0x00096] in <44dde17bb74e4847ac96fa1d80d6d096>:0
at Burst.Compiler.IL.Jit.Providers.OnDiskJitProvider.BeginCompileModule (Burst.Compiler.IL.NativeCompiler+ModulePair module, Burst.Compiler.IL.NativeCompiler nativeCompiler, Burst.Compiler.IL.NativeCompilerOptions options, Burst.Compiler.IL.Jit.JitOptions jitOptions, Burst.Compiler.IL.Helpers.Hash128& moduleHash, Burst.Compiler.IL.Jit.JitCacheManager jitCacheManager, Burst.Compiler.IL.Jit.GetExternalFunctionPointerDelegate getExternalFunctionPointer, System.Action& invokeBurstInitialize) [0x00031] in <44dde17bb74e4847ac96fa1d80d6d096>:0
at Burst.Compiler.IL.Jit.JitCompiler.CompileMethodInternal (Burst.Compiler.IL.Jit.JitResult result, System.Collections.Generic.List`1[T] methodsToCompile, Burst.Compiler.IL.Jit.JitOptions jitOptions) [0x00678] in <44dde17bb74e4847ac96fa1d80d6d096>:0
at Burst.Compiler.IL.Jit.JitCompiler.CompileMethods (Burst.Compiler.IL.Jit.JitMethodGroupRequest& request, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00209] in <44dde17bb74e4847ac96fa1d80d6d096>:0
at Burst.Compiler.IL.Jit.JitCompiler.CompileMethod (Burst.Compiler.IL.Jit.MethodReferenceWithMethodRefString method, Burst.Compiler.IL.Jit.JitOptions jitOptions, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00023] in <44dde17bb74e4847ac96fa1d80d6d096>:0
at Burst.Compiler.IL.Jit.JitCompilerService+CompilerThreadContext.Compile (Burst.Compiler.IL.Jit.JitCompilerService+CompileJob job, Burst.Compiler.IL.Jit.JitCompilationRequestType requestType) [0x00491] in <44dde17bb74e4847ac96fa1d80d6d096>:0
While compiling job: System.Void Unity.Jobs.IJobExtensions/JobStruct`1<Unity.Collections.LowLevel.Unsafe.UnsafeDisposeJob>::Execute(T&,System.IntPtr,System.IntPtr,Unity.Jobs.LowLevel.Unsafe.JobRanges&,System.Int32)
at
Shader error in 'UnityChan/Hair': Couldn't open include file 'Unlit.cg'. at line 180
Shader error in 'UnityChan/Clothing': Couldn't open include file 'Unlit.cg'. at line 180
感谢您的回复. 我们采用了unity 2021.3.7f1版本进行验证,没有发现该问题. 我们认为这可能是burst错误编译造成的问题,您可以尝试:
- 重新安装或者升级burst安装包
- 删除library目录,然后重新打开项目.
- 更换新的项目,导入插件. 如果问题依旧存在,请继续回复该issue.