- Home /
Problem importing .png: File could not be read
Hi,
I'm trying to create a new plugin for Unity. As a first step, I try to bring my current framework in to the plugins folder. The framework I'm importing consists of Objective-C files, as well as some .png files. After importing, every single .png file throws the following error:
Could not create texture from Assets/Plugins/iOS/avatar_pending.png: File could not be read
UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean)
UnityEditor.DockArea:OnGUI()
If I actually double-click on any of the .png files from inside Unity, they open in another window just fine. I also have another framework containing .png files, and am able to import that one in to Unity just fine. As far as I can tell, there is no difference between the .png's that work and the ones that do not.
Has anyone encountered this before, or have any ideas to try? Thanks
Only encountered the problem, when trying to import images larger than 4096x4096.
Yea that's what most of the online threads I've looked at have said. I don't think it's related to file size, these are small images. I've also seen a small .png from this project fail to import, and a larger .png from a different project import successfully.
Having the same problem for Vungle ads.. any resolution on this?
Answer by andrew-fray · Sep 01, 2015 at 07:59 AM
I had this problem with some assets that come with Vungle's plugin when working in the editor on OSX (I didn't check windows).
I fixed it by opening the assets in some editor (I used Seashore) and saving them straight back. Then the editor stopped complaining and they still seem to work fine on Android.
Your answer
![](https://koobas.hobune.stream/wayback/20220613121449im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Importing .png as a custom font in Unity 4.3 0 Answers
Error importing PNG: file could not be read 3 Answers
Heightmaps not importing properly 0 Answers
Textures weird transparency problem -- black lines on edges -- 2 Answers
Image - Actual Size / Unity Size 2 Answers