Search Unity

Sprite tiling problem in iOS [Solved]

Discussion in 'iOS and tvOS' started by grupdigitalkarangkraf, Apr 28, 2017.

  1. grupdigitalkarangkraf

    grupdigitalkarangkraf

    Joined:
    Apr 3, 2017
    Posts:
    4
    Hi,

    I'm having quite a problem with tiling a sprite on a Canvas UI. I have a polka dot image set to tile as a background and it worked perfectly in iMac, PC, and Android Devices. However, after exporting to my iPad, the tiling isn't there.

    What I have done:
    1. Set the image as "Sprite"
    2. Set the Wrap Mode to "Repeat"
    3. Set the background Image component's Image Type to Tiled

    Any ideas on this?

    - Image as seen on Mac, PC, and Android Devices -
    Screen Shot 2017-04-28 at 5.09.25 PM.png
    - Image on iOS - tested on iPad - notice the polka dot image on the lower left corner -
    IMG_0730.PNG
     
  2. grupdigitalkarangkraf

    grupdigitalkarangkraf

    Joined:
    Apr 3, 2017
    Posts:
    4
  3. Dalmazo

    Dalmazo

    Joined:
    Mar 18, 2015
    Posts:
    4
    Hey, I had the same problem here on iPad 2

    My texture was 73x72 and I rescaled to 64x64 in photoshop .

    Now everything works fine!
     
  4. grupdigitalkarangkraf

    grupdigitalkarangkraf

    Joined:
    Apr 3, 2017
    Posts:
    4
    I see. I will try it now. Thank you!
     
  5. grupdigitalkarangkraf

    grupdigitalkarangkraf

    Joined:
    Apr 3, 2017
    Posts:
    4
    Thanks to the answer above, everything is working now.
    To tile, iOS require use of Power of Two (POT) textures - 16x16, 32x32, 64x64, etc...

    Hope this helps someone.
     
    can_unity768, 5argon and Dalmazo like this.