So I code in C# and I create a new texture like this:
using UnityEngine;
using System.Collections;
public class example: MonoBehaviour
{
// Gui stuff
private Texture2D MyTexture;
// Debug GUI. Disable when not needed.
void OnGUI ()
{
MyTexture = new Texture2D(8,8);
GUI.DrawTexture(new Rect(10, 30, 100, 10), MyTexture);
// rest of the code...
}
}
In editor it works perfectly, I can use this texture for progresbars etc.
Heres a demonstration:
Left in build, right in editor.
Any ideas?
but in a build the texture flickers with some sort of circles, sort of reminds me of old mipmaping bugs