Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by zackgarbowitz · Nov 08, 2013 at 04:28 PM · importpng

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

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ejlersen · Nov 08, 2013 at 06:32 PM 0
Share

Only encountered the problem, when trying to import images larger than 4096x4096.

avatar image zackgarbowitz · Nov 08, 2013 at 09:04 PM 0
Share

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.

avatar image theberzerker6 · Jan 21, 2015 at 02:15 PM 0
Share

Having the same problem for Vungle ads.. any resolution on this?

1 Reply

· Add your reply
  • Sort: 
avatar image
2

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges