[RS] Unity Crash记录 - 02 TerrainData in AssetBundle
AB包模式下加载Terrain崩溃1、环境
Unity 2020.3.25f1
2、Android堆栈
03-24 15:28:32.45761176147 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***03-24 15:28:32.45761176147 E CRASH : Version '2020.3.25f1 (9b9180224418)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'03-24 15:28:32.45761176147 E CRASH : Build fingerprint: 'Xiaomi/sagit/sagit:9/PKQ1.190118.001/V10.4.2.0.PCACNXM:user/release-keys'03-24 15:28:32.45761176147 E CRASH : Revision: '0'03-24 15:28:32.45761176147 E CRASH : ABI: 'arm'03-24 15:28:32.45761176147 E CRASH : Timestamp: 2022-03-24 15:28:32+080003-24 15:28:32.45761176147 E CRASH : pid: 6117, tid: 6147, name: UnityMain>>> com.mole.rs.daily <<<03-24 15:28:32.45761176147 E CRASH : uid: 1033603-24 15:28:32.45761176147 E CRASH : signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr --------03-24 15:28:32.45761176147 E CRASH : r000000000r100001803r200000008r30000000003-24 15:28:32.45761176147 E CRASH : r400000000r5cbfbfac8r600000000r70000010c03-24 15:28:32.45761176147 E CRASH : r8cbfbfac0r99a13a598r10 cbfbfac8r11 0000000003-24 15:28:32.45761176147 E CRASH : ip00000000spcbfbf990lrcdc1408bpcedc6863403-24 15:28:32.45761176147 E CRASH : 03-24 15:28:32.45761176147 E CRASH : backtrace:03-24 15:28:32.45761176147 E CRASH : #00 pc 00061634/system/lib/libc.so (tgkill+12) (BuildId: ce26c7a2f39045392d0359e8b6322315)03-24 15:28:32.45761176147 E CRASH : #01 pc 014ba087/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (__aeabi_idiv0+6) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #02 pc 00ced00b/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (std::__ndk1::enable_if<(__is_forward_iterator<StrideIterator<Vector3f> >::value) && (is_constructible<Vector3f, std::__ndk1::iterator_traits<StrideIterator<Vector3f> >::reference>::value), void>::type std::__ndk1::vector<Vector3f, std::__ndk1::allocator<Vector3f> >::assign<StrideIterator<Vector3f> >(StrideIterator<Vector3f>, StrideIterator<Vector3f>)+22) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #03 pc 00cecd85/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (DetailDatabase::RefreshPrototypesStep1(Texture2D**)+620) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #04 pc 00cec749/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (DetailDatabase::RefreshPrototypes()+148) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #05 pc 00cf9757/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (TerrainData::AwakeFromLoad(AwakeFromLoadMode)+42) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #06 pc 0082f215/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (AwakeFromLoadQueue::PersistentManagerAwakeSingleObject(Object&, AwakeFromLoadMode)+32) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #07 pc 008201e9/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal(int)+24) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #08 pc 0060de89/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int)+320) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #09 pc 0060e923/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (LoadSceneOperation::IntegrateTimeSliced(int)+6) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #10 pc 0060f6d1/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)+80) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #11 pc 0060ff55/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PreloadManager::UpdatePreloading()+180) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #12 pc 00602f2d/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (InitPlayerLoopCallbacks()::EarlyUpdateUpdatePreloadingRegistrator::Forward()+40) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #13 pc 005fc2f3/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+52) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #14 pc 005fc327/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+104) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #15 pc 005fc4ed/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PlayerLoop()+284) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45761176147 E CRASH : #16 pc 00854415/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (UnityPlayerLoop()+516) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45861176147 E CRASH : #17 pc 0087cce5/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.45861176147 E CRASH : #18 pc 0000779b/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/oat/arm/base.odex03-24 15:28:32.54761176147 E CRASH : Tombstone written to: /storage/emulated/0/Android/data/com.mole.rs.daily/files/tombstone_00--------- beginning of crash03-24 15:28:32.54861176147 E AndroidRuntime: FATAL EXCEPTION: UnityMain03-24 15:28:32.54861176147 E AndroidRuntime: Process: com.mole.rs.daily, PID: 611703-24 15:28:32.54861176147 E AndroidRuntime: java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***03-24 15:28:32.54861176147 E AndroidRuntime: Version '2020.3.25f1 (9b9180224418)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'03-24 15:28:32.54861176147 E AndroidRuntime: Build fingerprint: 'Xiaomi/sagit/sagit:9/PKQ1.190118.001/V10.4.2.0.PCACNXM:user/release-keys'03-24 15:28:32.54861176147 E AndroidRuntime: Revision: '0'03-24 15:28:32.54861176147 E AndroidRuntime: ABI: 'arm'03-24 15:28:32.54861176147 E AndroidRuntime: Timestamp: 2022-03-24 15:28:32+080003-24 15:28:32.54861176147 E AndroidRuntime: pid: 6117, tid: 6147, name: UnityMain>>> com.mole.rs.daily <<<03-24 15:28:32.54861176147 E AndroidRuntime: uid: 1033603-24 15:28:32.54861176147 E AndroidRuntime: signal 8 (SIGFPE), code -6 (SI_TKILL), fault addr --------03-24 15:28:32.54861176147 E AndroidRuntime: r000000000r100001803r200000008r30000000003-24 15:28:32.54861176147 E AndroidRuntime: r400000000r5cbfbfac8r600000000r70000010c03-24 15:28:32.54861176147 E AndroidRuntime: r8cbfbfac0r99a13a598r10 cbfbfac8r11 0000000003-24 15:28:32.54861176147 E AndroidRuntime: ip00000000spcbfbf990lrcdc1408bpcedc6863403-24 15:28:32.54861176147 E AndroidRuntime: 03-24 15:28:32.54861176147 E AndroidRuntime: backtrace:03-24 15:28:32.54861176147 E AndroidRuntime: #00 pc 00061634/system/lib/libc.so (tgkill+12) (BuildId: ce26c7a2f39045392d0359e8b6322315)03-24 15:28:32.54861176147 E AndroidRuntime: #01 pc 014ba087/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (__aeabi_idiv0+6) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #02 pc 00ced00b/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (std::__ndk1::enable_if<(__is_forward_iterator<StrideIterator<Vector3f> >::value) && (is_constructible<Vector3f, std::__ndk1::iterator_traits<StrideIterator<Vector3f> >::reference>::value), void>::type std::__ndk1::vector<Vector3f, std::__ndk1::allocator<Vector3f> >::assign<StrideIterator<Vector3f> >(StrideIterator<Vector3f>, StrideIterator<Vector3f>)+22) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #03 pc 00cecd85/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (DetailDatabase::RefreshPrototypesStep1(Texture2D**)+620) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #04 pc 00cec749/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (DetailDatabase::RefreshPrototypes()+148) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #05 pc 00cf9757/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (TerrainData::AwakeFromLoad(AwakeFromLoadMode)+42) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #06 pc 0082f215/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (AwakeFromLoadQueue::PersistentManagerAwakeSingleObject(Object&, AwakeFromLoadMode)+32) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #07 pc 008201e9/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal(int)+24) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #08 pc 0060de89/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int)+320) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #09 pc 0060e923/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (LoadSceneOperation::IntegrateTimeSliced(int)+6) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #10 pc 0060f6d1/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)+80) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #11 pc 0060ff55/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PreloadManager::UpdatePreloading()+180) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #12 pc 00602f2d/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (InitPlayerLoopCallbacks()::EarlyUpdateUpdatePreloadingRegistrator::Forward()+40) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54861176147 E AndroidRuntime: #13 pc 005fc2f3/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+52) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54961176147 E AndroidRuntime: #14 pc 005fc327/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (ExecutePlayerLoop(NativePlayerLoopSystem*)+104) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54961176147 E AndroidRuntime: #15 pc 005fc4ed/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (PlayerLoop()+284) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54961176147 E AndroidRuntime: #16 pc 00854415/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (UnityPlayerLoop()+516) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54961176147 E AndroidRuntime: #17 pc 0087cce5/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+40) (BuildId: 84ed0a8f67c81d5b940dd5fb627d43f9a0fb9746)03-24 15:28:32.54961176147 E AndroidRuntime: #18 pc 0000779b/data/app/com.mole.rs.daily-MKLhWLWtjRzOutr86nzemA==/oat/arm/base.odex03-24 15:28:32.54961176147 E AndroidRuntime: 03-24 15:28:32.54961176147 E AndroidRuntime: at libc.tgkill(tgkill:12)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.__aeabi_idiv0(__aeabi_idiv0:6)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.std::__ndk1::enable_if<(__is_forward_iterator<StrideIterator<Vector3f> >::value) && (is_constructible<Vector3f, std::__ndk1::iterator_traits<StrideIterator<Vector3f> >::reference>::value), void>::type std::__ndk1::vector<Vector3f, std::__ndk1::allocator<Vector3f> >::assign<StrideIterator<Vector3f> >(StrideIterator<Vector3f>, StrideIterator<Vector3f>)(enable_if<:22)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.DetailDatabase::RefreshPrototypesStep1(Texture2D**)(RefreshPrototypesStep1:620)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.DetailDatabase::RefreshPrototypes()(RefreshPrototypes:148)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.TerrainData::AwakeFromLoad(AwakeFromLoadMode)(AwakeFromLoad:42)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.AwakeFromLoadQueue::PersistentManagerAwakeSingleObject(Object&, AwakeFromLoadMode)(PersistentManagerAwakeSingleObject:32)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal(int)(IntegrateObjectAndUnlockIntegrationMutexInternal:24)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int)(IntegrateTimeSliced:320)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.LoadSceneOperation::IntegrateTimeSliced(int)(IntegrateTimeSliced:6)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int)(UpdatePreloadingSingleStep:80)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.PreloadManager::UpdatePreloading()(UpdatePreloading:180)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.InitPlayerLoopCallbacks()::EarlyUpdateUpdatePreloadingRegistrator::Forward()(InitPlayerLoopCallbacks:40)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:52)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.ExecutePlayerLoop(NativePlayerLoopSystem*)(ExecutePlayerLoop:104)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.PlayerLoop()(PlayerLoop:284)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.UnityPlayerLoop()(UnityPlayerLoop:516)03-24 15:28:32.54961176147 E AndroidRuntime: at libunity.nativeRender(_JNIEnv*, _jobject*)(nativeRender:40)03-24 15:28:32.54961176147 E AndroidRuntime: at base.0x779b(Native Method)03-24 15:28:32.56316043850 W ActivityManager: Force finishing activity com.mole.rs.daily/com.unity3d.player.UnityPlayerActivity3、Unity Editor堆栈
Unloading 246 Unused Serialized files (Serialized files now loaded: 26)Assertion failed on expression: 'chanType.dimension == 0'Requesting mesh vertex attribute 1 of format 0 min dimension 3, but mesh contains format 1 dimension 4Assertion failed on expression: 'm_Stride != 0 && "Stide must not be zero"'Stacktrace:=================================================================Got a SIGFPE while executing native code. This usually indicatesa fatal error in the mono runtime or one of the native libraries used by your application.=================================================================Crash!!!SymInit: Symbol-SearchPath: 'E:/Unity/2020.3.25f1/Editor/Data/Mono;.;D:\Mole\RSDev\client;E:\Unity\2020.3.25f1\Editor;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'admin'OS-Version: 10.0.0...========== OUTPUTTING STACK TRACE ==================0x00007FF695EFD60E (Unity) std::vector<Vector3f,std::allocator<Vector3f> >::_Assign_range<StrideIterator<Vector3f> >0x00007FF695F072D7 (Unity) DetailDatabase::RefreshPrototypesStep10x00007FF695F069C3 (Unity) DetailDatabase::RefreshPrototypes0x00007FF695F00C62 (Unity) DetailDatabase::AwakeFromLoad0x00007FF695F247B4 (Unity) TerrainData::AwakeFromLoad0x00007FF695B23369 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeSingleObject0x00007FF695AF5DB7 (Unity) PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal0x00007FF6957EA670 (Unity) TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced0x00007FF6957EA395 (Unity) LoadSceneOperation::IntegrateTimeSliced0x00007FF6957ED81B (Unity) PreloadManager::UpdatePreloadingSingleStep0x00007FF6957ED50D (Unity) PreloadManager::UpdatePreloading0x00007FF6957C4243 (Unity) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateUpdatePreloadingRegistrator::Forward0x00007FF6957AC4DC (Unity) ExecutePlayerLoop0x00007FF6957AC5B3 (Unity) ExecutePlayerLoop0x00007FF6957B3059 (Unity) PlayerLoop0x00007FF69646FA91 (Unity) PlayerLoopController::UpdateScene0x00007FF69646DD19 (Unity) Application::TickTimer0x00007FF6968B34D1 (Unity) MainMessageLoop0x00007FF6968B7521 (Unity) WinMain0x00007FF697F45752 (Unity) __scrt_common_main_seh0x00007FFF41BA7034 (KERNEL32) BaseThreadInitThunk0x00007FFF43B82651 (ntdll) RtlUserThreadStart========== END OF STACKTRACE ===========4、原因&解决
Paint Details
根本原因还没搞清楚,测试下来,删除Paint Details可以不闪退。但这样场景里的草就没了,后面还要深入查。
<hr>
2022/03/25 补充:
搜到了相关的报错,但它竟然是【Won't Fix 】状态,只能在各种参数设置方面下手了。一通乱改,最终发现要把Mesh的Read/Write Enabled开启。同时Texture的RW也要开启,不然会报错。
在2018.1的文档里还能看到一点提示,后续版本啥也没有了:
Note that if you want to assign a Texture to a Terrain, you need to open the Texture Importer and tick the Read/Write Enabled checkbox.
http://upload-images.jianshu.io/upload_images/582970-780dd6afe60ca3da.png
开启Detail Mesh的Read/Write Enabled
问题原因还是没搞清,但应该没法进一步处理了。Unity其他地方也有必须开启RW的情景,如Particle System用到的Mesh。
Editor crashes on CompressedMesh::Compress when using VertexAttributeFormat.Float16 and Mesh compression is enabledManual: terrain-Textures
页:
[1]