Author Topic: GUI Assets breaking on switching platform from android to ios/bb/wp  (Read 8578 times)

puneetk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Hey everyone. I'm using NGUI Free version.

All my textures, sprites and all are breaking when switching from Android to iOS or BB or any platform for that matter.

I was working in Android mode till now so everything was fine as expected. But when I tried to build for iOS/BB/WP8 all the sprites, and textures ruined! All other platforms fail to give me the desired output..
I really have no idea why this is happening. I've searched all over the forums but no one seems to have got the same problem.

Please help me out.

I have attached 2 images 'android' and 'ios' to show how its breaking on iOS. If needed I can show you image of BB/WP8 as well.

Thanks!

Note: I am using both sprites and textures

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #1 on: March 27, 2014, 08:15:40 AM »
Check the texture import settings, depending on the platform Unity will automatically re-import all your textures changing what it sees fit.

This is likely just that, Unity decided to limit the size of your atlases to 1024/2048 and chose whatever compression method it wants.

https://docs.unity3d.com/Documentation/Manual/Textures.html

puneetk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #2 on: March 27, 2014, 08:37:33 AM »
Right, I noticed that for iOS unity is compressing my Textures to RGBA 16 bit and making it's filesize half, and likewise the atlas is being reduced to a 1024 x 1024 from 2048 x 2048 which I was using on BlackBerry.

Is there a way to get it back to 2048? I've tried a lot but nothing worked.

Also, on Blackberry 10 and Windows Phone 8 I am getting my sprites blown up to an undesired size.

Attaching a screenshot.

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #3 on: March 27, 2014, 08:59:40 AM »


Check the platform overrides (the icons beside Default near the bottom).

Not sure about Blackberry or WP8 as I have not used either platform, but it could be related to the import settings (the Atlas may be being stretched instead of shrunk like it is for iOS).

puneetk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #4 on: March 27, 2014, 09:13:45 AM »
Thanks! It did work for iOS!

Still getting scaled up sprites for WP/BB10. Checked the overwrite settings, it's not overwriting though!

UncleAcid

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #5 on: March 27, 2014, 10:10:59 AM »
You said you're using NGUI Free, I assume you mean 2.7.0 ? Either way, there have been countless improvements to NGUI (including several for BB and WP and UIRoot scaling) since then. It could possibly have been fixed since then.

Unfortunately 2.7.0 is too old for me to do much more. Maybe ArenMook could bring some insight into it, but as far as I know he doesn't support 2.7.0 anymore.

Glad I could help for iOS though :) Good luck with BB and WP.

puneetk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #6 on: March 27, 2014, 10:13:38 AM »
Yes, I was talking about 2.7.0

Sure, thanks for your help so far! Hope Aren can give me a reply :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: GUI Assets breaking on switching platform from android to ios/bb/wp
« Reply #7 on: March 28, 2014, 12:42:28 AM »
2.7.0 doesn't come with support. That's why it's free.