public static void MakeTextureReadable(Texture2D texture) { if (texture != null) { var importer = D2D_Helper.GetAssetImporter <UnityEditor.TextureImporter>(texture); if (importer != null && importer.isReadable == false) { importer.isReadable = true; D2D_Helper.ReimportAsset(importer.assetPath); } } }