I have a rawimage in my ui, where I assign the texture via code: Code (csharp): public class Test : MonoBehaviour { public Texture2D source; public RawImage image; void Start () { image.texture = source; image.SetNativeSize(); } } (it's more complex than this, but this reproduces the bug) In the editor or windows/webplayer build it looks like this: In a webgl build it looks like this: Someone an idea what's going on? (Unity 5.2.2p2)
It might be a bug related to the Wrap Mode texture state. Would you mind submitting a bug report with your project ? can you reproduce it in the Editor if you launch unity with -force-gles20 argument ?
Tried it with the argument (<OpenGL 4.2 core profile> in the title bar), image looks correct so no repro.
@alexsuvorov has fixed a related bug for 5.4. We will check if it's the same issue. Is the texture non-power-of-two?