Hi
I’ve got weird problem.
In one of my scripts I’m loading a texture:
public Texture2D clocks;
...
clocks = (Texture2D)Resources.Load("GUI/clocks");
...
GUI.DrawTexture(new Rect(100,100,100,100), clocks);
Simple.
Now … when I play this threw Unity IDE it works fine, texture is on the screen. But when I build it as an application ( windows ) the texture is gone and in debug file i’ve got information:
NullReferenceException: Object reference not set to an instance of an object
In app it doesn’t see the texture file ??