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 ![]()