I create the Texture2D at runtime. In the preview window and on scene it is not displayed correctly. What could be wrong?
I found the solution in settings of mipmaps: Texture2D newTexture = new Texture2D(width, height, TextureFormat.ARGB32, false);