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 kromenak · Apr 29, 2014 at 08:16 PM · erroriospngbundle

Why am I getting an error for PNG files in an iOS Bundle File?

I'm integrating Google Play Game Services into our app, and part of that process is including two files with the ".bundle" extension - GooglePlus.bundle and PlayGameServices.bundle. Two issues arise as a result of putting .bundle files into my Assets folder:

1) Unity treats the .bundle files as folders (which I guess, under the hood, they are). Is there any way to force Unity to treat them as files? Unity will annoyingly try to import all the assets contained within the bundle, which is somewhat time consuming. I don't need Unity to touch anything inside these bundles.

2) For some, but not all, PNG files within the bundle, I get an error about not being able to read the file. Some PNGs show up in the inspector fine, but maybe 30-40 PNG files fill the editor log up with this error:

 Could not create texture from Assets/Editor/GooglePlayServices/Bundles/GooglePlus.bundle/gpp_sign_in_dark_button_disabled@2x.png: File could not be read

I've heard of this error occurring due to permissions issues or if the texture is larger than 4096x4096, but these are very small files, and I've checked the permissions of some other PNG files in the bundle that do import, and everything appears to be identical.

Any ideas as to why this is happening, or how I can fix? Thanks!

Comment
Add comment · Show 1
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 theberzerker6 · Jan 21, 2015 at 02:41 PM 0
Share

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by petersont · Jun 17, 2015 at 04:33 AM

Apple software uses a proprietary PNG extension called CgBI which Unity (and other cross-platform productive software like GIMP) is unaware of.

http://iphonedevwiki.net/index.php/CgBI_file_format

Try taking one of the offending png files, opening it in a hex editor, you'll see the letters CgBI in there if this is the reason.

You can work around it by following one of the methods described here:

http://www.jongware.com/pngdefry.html

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
avatar image
2

Answer by kayy · Aug 16, 2015 at 07:32 AM

  • Open the corrupted file in the OS X Preview app or any graphics program.

  • Make a dummy change and save the file

  • Undo your change and save it again

Now the error should disappear and you should see the import settings of the previously affected file.

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
avatar image
0

Answer by Meltdown · Jun 17, 2015 at 04:47 AM

Not sure if this will help you, but worth mentioning...

DXT texture compression is not supported by Unity iOS; use PVRTC formats instead, and Rectangular textures can not be compressed to PVRTC formats.

So not too sure about those bundles, what the files are for, and if they have any compression on them, but something to be aware of.

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

23 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 avatar image avatar image avatar image avatar image avatar image

Related Questions

Some problems after switch the game for iOS mode 2 Answers

TLS Allocator ALLOC_TEMP_THREAD when building ios *No Particles* 0 Answers

Unhandled Exception: Mono.CSharp.InternalErrorException: Internal error 1 Answer

Embedding PNGs in an app to create a Texture2D on runtime in iOS 1 Answer

What does error shouldIgnoreInGarbageDependencyTracking mean ? 1 Answer


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