• 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 Tanoshimi2000 · Jun 23, 2016 at 12:22 AM · androidtextureresolution

How do I downsize all textures for mobile version?

I have a game that uses assets designed to work at 4k and it looks awesome. Made a copy of the project and converted the copy to Android. Compiled and installed on tablet, but it crashes. Doesn't tell me anything, just fails during the loading. Since there's no logging or any way to tell what's crashing it, I'm going to assume it's just too much graphics for the memory.

Now I know I can select a texture, and reimport it, using a lower max resolution (some of these are 2048), but how can I do that across the board for all of the textures in the game. Searching for "t:texture" gets them all, but I can't select all and reimport, and all of them aren't at the same type or textures resolution.

I am trying to avoid having to write an editor add-on that will reimport each texture asset at 1/2 to 1/4 it's current resolution, if someone can give me any suggestions?

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by SarperS · Jun 23, 2016 at 04:53 AM

There is logging and there are ways to tell what's crashing. Log your game on your tablet using logcat.

http://answers.unity3d.com/questions/492681/how-to-use-adb-logcat.html

As for your other question, go to your texture's import settings, go to the Android tab, toggle Override for Android, and change the maximum texture size. alt text


screen-shot-2016-06-23-at-075438.png (19.0 kB)
Comment
Add comment · Show 6 · 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 Tanoshimi2000 · Jun 23, 2016 at 09:44 AM 0
Share

But isn't that done "per texture?" I'd rather not have to do this for thousands of textures, and I can't multi-select because they're not all the same size, type, and resolution. Saschandroid seems to be on to something.

But I do like your advice for debugging. Will have to look into that. Had been just building and copying over apk's, but really need to run it directly on the tablet I plan to use and look at the debugging.

avatar image SarperS Tanoshimi2000 · Jun 23, 2016 at 12:23 PM 0
Share

Have a look at this script, I use it on all my projects, it changes the default import settings of the assets. You can customize the settings in the script to your liking, select all your textures (by searching for t:Texture2D in the project window), right click on them and re-import them. It would take some time but also change all the texture settings based on your preferences. Also from that point onward, whenever you add a new texture, it would come with your pre-defined settings for every different platform in the script.

http://www.sarpersoher.com/a-custom-asset-importer-for-unity/

avatar image saschandroid SarperS · Jun 23, 2016 at 12:38 PM 0
Share

Although your script is useful ... I guess what he actually wants, is to have each texture to be (for example) half it's size (4096->2048, 1024->512, 512->256, ... ). If you set the maximum import size for android let' say to 1024, all textures above 1024 get resized and none of the textures with 1024 or less. I may be wrong, but I think he wants these small ones to be resized too.

Show more comments
avatar image
0

Answer by saschandroid · Jun 23, 2016 at 06:57 AM

Instead of re-importing the textures you can try to lower the graphics quality for android. Go to Edit->Project Settings->Quality and change the Texture Quality for all Quality Levels from Full Res to Half, Quarter or Eighth Res.

Comment
Add comment · Show 2 · 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 Tanoshimi2000 · Jun 23, 2016 at 09:40 AM 0
Share

Trying that. It sounds like what I need. If you report this as an answer, I think I can mark this the correct answer.

avatar image Tanoshimi2000 · Jun 23, 2016 at 02:18 PM 0
Share

Ok, so I tried this, dropping it to Eight Res, and the app still did not run. Not sure if this is what I needed, but it seems like it's on the right track.

avatar image
0

Answer by DanishSinha · Aug 20, 2017 at 03:01 AM

Use the memory profiler and check your memory allocation maybe it is crashing because of high memory allocation.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

83 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 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 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 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

2D Sprite Black on mobile - Resolution problem 2 Answers

Texture looks low-res/chunky/pixelated on mobile 3 Answers

Which resolution is used when "Auto (Best Performance)" is selected? 1 Answer

iOS and Android Resolution limitation 0 Answers

1 Big texture, 2 materials? 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