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
0
Question by oliver-jones · Feb 19, 2014 at 10:21 PM · textureimportsizepng

Image - Actual Size / Unity Size

I've never understood how Unity manages my imported image sizes.

For example, I have made a texture png that has a file size of 3KB, but as soon as I import it into Unity and make it True Colour, that file size is now 1.3MB.

Whats odd is that a lot of these images that do differ in size in file, seem to have the same size within Unity, only larger.

Example, I have 5 PNGs of a grass texture, the actual file sizes range from 100KB to 300KB, yet in Unity, they're all 0.7MB.

Also, I remember having a large texture (actual file size was about 5MB), but in Unity, that size was around 52MB if I remember correctly, yet it made hardly any difference to my overall build size within Xcode (building for iOS here).

Can someone please shed some light here for me?

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 giano574 · Oct 15, 2014 at 05:29 PM 0
Share

Did you ever figure this out? I am seeing the same thing.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Statement · Oct 15, 2014 at 05:45 PM

The original file format doesn't matter as Unity will convert png/jpg/psd etc into a native format that Unity understands. Uncompressed textures will consume more memory than compressed textures.

Import Diagram

For truecolor non-transparent textures it's (3 x Width x Height) bytes
For truecolor transparent textures it's (4 x Width x Height) bytes

An example:
A 1024x1024 truecolor RGB texture is then 3 x 1024 x 1024 = 3145728 bytes or 3 MB


texture-import.png (9.4 kB)
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
1

Answer by Digger8048 · Oct 15, 2014 at 05:48 PM

When you import a texture into unity and set it to true color that removes all compression (which is why they go from various sizes to a consistent size). For example, imagine you have 2 256x256 PNG images; one is a photo, and the other is solid black. The photo has a lot of complexity to it and will only compress a little. The black image will compress extremely well since it is just one color. So, compressed they are different file sizes, uncompressed they are the same.

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

21 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

Related Questions

Texture Import - PNG 8bits ? 1 Answer

How to create a circle around a selected game object? 1 Answer

Create .png file from script, then import as asset 1 Answer

Texture loading problem: size, aspect ratio, and alpha 0 Answers

Importing texture, problem with size - width and height get changed 3 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