0

在为 x86_x64 窗口构建后面临 alembic 的困难。没有加载或读取 Alembic 文件,我在日志文件中收到此错误

我正在使用统一 2019.4.16f1 并尝试使用 Alembic 包 1.0.7(他们说我的统一版本已验证)和 2.1.2

任何人都可以帮助我吗?

无法在 C:/Unity Projects/TD_Project/Builds/PC/TD_Project_Data/StreamingAssets\Assets/TD_Project/Models/Towers/Bomb Turret/Models (Animated)/Bomb turret 3rd animation.ABC 0x00007FF92D401D1C (UnityPlayer) 0x00007FF92D405519 (UnityPlayer) 加载 alembic ) 0x00007FF92D3EC3D8 (UnityPlayer) 0x00007FF92E6A85AD (UnityPlayer) UnityMain 0x00007FF92DF4F45A (UnityPlayer) UnityMain 0x0000024BFBB0874D (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object) 0x0000024BFBB0806B (单 JIT 代码)[DebugLogHandler.cs:9] UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) 0x0000024BFBB07556(单 JIT 代码)[Logger.cs:60] UnityEngine.Logger:Log (UnityEngine.LogType,object) 0x0000024C0C2958F2 (Mono JIT 代码) [Debug.bindings.cs:127] UnityEngine.Debug:LogError (object) 0x0000024BFBFFC1DB (Mono JIT Code) [AlembicStream.cs:149] UnityEngine.Formats.Alembic.Importer.AlembicStream:AbcLoad (bool,bool) 0x0000024BFBFF8BFB (Mono JIT Code) [AlembicStreamPlayer.cs: 75] UnityEngine.Formats.Alembic.Importer.AlembicStreamPlayer:LoadStream (bool) 0x0000024BFC1AACA3 (Mono JIT Code) [AlembicStreamPlayer.cs:117] UnityEngine.Formats.Alembic.Importer.AlembicStreamPlayer:Update () 0x0000024BBF165B38 (Mono JIT Code) (wrapper运行时调用)对象:runtime_invoke_void__this__(对象,intptr,intptr,intptr)0x00007FF92C6ED6D0(mono-2.0-bdwgc)mono_get_runtime_build_info 0x00007FF92C672932(mono-2.0-bdwgc)mono_perfcounters_init76B982。0-bdwgc) mono_runtime_invoke 0x00007FF92DEBA82D (UnityPlayer) UnityMain 0x00007FF92DEB74BD (UnityPlayer) UnityMain 0x00007FF92DE9A8A3 (UnityPlayer) UnityMain 0x00007FF92DE9A95D (UnityPlayer) UnityMain 0x00007FF92D878D80 (UnityPlayer) UnityMain 0x00007FF92D87FCFD (UnityPlayer) UnityMain 0x00007FF92DB4F5DB (UnityPlayer) UnityMain 0x00007FF92DB3D6D7 (UnityPlayer) UnityMain 0x00007FF92DB3D79F (UnityPlayer) UnityMain 0x00007FF92DB4138D (UnityPlayer) UnityMain 0x00007FF92D42CF2B (UnityPlayer) 0x00007FF92D42B87A (UnityPlayer) 0x00007FF92D430096 (UnityPlayer) 0x00007FF92D433DCB (UnityPlayer) UnityMain 0x00007FF6501A11F2 (TD_Project) 0x00007FF9A6CA7C24 (KERNEL32) BaseThreadInitThunk 0x00007FF9A6E6D4D1 (ntdll) RtlUserThreadStart (Filename: C:\buildslave\unity\build\Runtime/导出/调试/Debug.bindings.h 行:35)35)35)35)35)35)35)

有想法该怎么解决这个吗?

4

1 回答 1

0

显然,alembics 是流媒体资产,需要位于构建目录的“StreamingAssets”文件夹中。如果资产在场景中,Unity 会自动执行此操作,否则您必须手动将文件复制到正确的目录。

您可以使用 Johansski 的代码从编辑器而不是手动复制文件系统。Johanski 在这个 Unity 论坛上讨论了这个问题,其中提出了一个类似的问题:

https://forum.unity.com/threads/missing-alembic-streaming-assets.635320/#post-4776968

于 2021-01-20T09:10:11.327 回答