Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Wrap Mode: Repeat acts like Clamp on Windows Phone 10

Discussion in 'Windows' started by Retruate, May 18, 2016.

  1. Retruate

    Retruate

    Joined:
    Jul 5, 2014
    Posts:
    111
    Hello,

    I have a game that I'm planning on porting to the Windows Store, but I'm encountering an odd problem. I have dynamic resizing of a 2D quad that acts as grass. I scale it by a value relative to the screen size and then I change the material.mainTextureScale's "x" value by that same value. The Wrap Mode on the texture is set to Repeat, not Clamp. On Android and on Windows 10 (Store app), I get the desired result, but on Windows Phone 10, the texture acts like it's set to Clamp. I'm not changing the wrap mode via script (I don't even think I can) and I'm not getting any errors. What's causing this?

    Thanks.

    (My Windows Phone device is a Microsoft Lumia 640, if that matters).
     
  2. Retruate

    Retruate

    Joined:
    Jul 5, 2014
    Posts:
    111
    It seems like my issue was my texture being a non power of 2 and me doing nothing about it, because now it is working. I'm still figuring things out though.