load external resources (video, images) on standalone build, [updated] images Ok, left video.

Hi, and sorry my english.

i need to load external resources on a standalone build on Windows.

i tried many examples found at fórum but i can’t load after build Project.

i have this code.

public var GOCube: GameObject;

function Start()
{
	GOCube.renderer.material.mainTexture = Resources.Load("Face1",Texture);	
}

when I build the Project, at folder Resources I put Face1.png image, but the cube don’t load this texture.

What i’m doing wrong?
i’ts posible to load external resources al start?

Thanks

Include Face1.png into a Resources folder in the Assets folder. That texture will then be included into the resources asset, with can then be read using Resources.Load().

I’ve gotten it to work load images with the following source code

filePath = Application.dataPath + "/Resources/Textures/caraA"+a+".png";
	
		if (System.IO.File.Exists(filePath))
		{
			var bytes = System.IO.File.ReadAllBytes(filePath);
		    var tex = new Texture2D(1, 1);
		    tex.LoadImage(bytes);
		    GOCaraA[a].renderer.material.mainTexture = tex;
		}

and rules ok.

This work for images but now i need to load a video too.

Any idea to manage this?

Thanks.