how to load texture in other script ?

hi all
how to load/get/draw texture in other script (depend on texture name) ?

I am not really sure of what you mean but I imagine you want to change the texture of a GameObject by accessing it from another GameObject

You can access the texture of another gameObject like this:

var texture : Texture;
var object : GameObject;

function ChangeTexture()
{
     object.renderer.material.mainTexture = texture;
}

I haven’t tested the code, but should work.

Next time try to explain a little bit better what you want to achieve

Bye!