I can't render a texture from the resources folder

I’ve been trying to load in a .png from the resources folder in to a build of my game and cannot get it to load the texture but project a white empty texture instead.

This is my code

 private var texture : Texture;

    function Start()
    {
    	texture = Resources.Load("uv");
        GetComponent.<Renderer>().material.mainTexture = texture;
    }

If anyone knows what I am doing wrong that would be greatly appreciated I can’t seem to find the solution cheers :slight_smile:

texture = Resources.Load(“uv”) as Texture;

does this work?

no luck. I’ve also tried

 texture = Resources.Load("uv", typeof(Texture)) as Texture;

and I update the mainTexture as well as at Start but still sets to a blank texture

edit: it works in the editor? I didn’t check this :stuck_out_tongue:
still not working in a build and I have uv.png in the Resources folder