ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD...

weixin_34320159發表於2017-12-27

ASSERTION FAILED: TLS ALLOCATOR ALLOC_TEMP_THREAD

今天碰到了類似的問題,不過是在Android下才出現的。

Same thing on 2017.3.0.f3 with android.
Reimport All didn't resolved the issue...
So I tested ton of things and one thing worked to me :
At the root of your project,within the Project view/search bar,

  • type (in order to display all the textures):
  • t:texture2d
  • Select all your textures and apply the compression "normal quality" and use Crunch compression => No
    After this big reset you can change back your quality settings :)

查到這個解決辦法,然後發現圖片太多,沒辦法查,反正原理知道了,寫個程式碼篩選就行

        [MenuItem( "Test/tttt" )]
        public static void Testttttt()
        {
            foreach( var assetPath in AssetDatabase.GetAllAssetPaths() )
            {
                var texture = AssetDatabase.LoadAssetAtPath<Texture2D>( assetPath );
                if( texture != null )
                {
                    var importer = AssetImporter.GetAtPath( assetPath ) as TextureImporter;
                    if(importer!=null && importer.crunchedCompression )
                    {
                        Debug.Log(assetPath);
                        //Find
                    }
                }
            }
        }

相關文章