Hi,
I have a string variable that should help me assign the right texture to an object. I'd want to do something like
texStringVar = "ABCD"
texTexVar = \Assets\Texture_[texStringVar]
renderer.material.mainTexture = texTexVar;
=> which (I wish!) would set my texture to "Texture_ABCD"I'm trying to use the "Resources Load", but it seems I can only assign a predefined texture ... which I have no way of referencing logically.
Also, I've failed trying to figure out what I am to put in the required "Asset Path" field. There is no help as to how the path is supposed to look in the description, only that it is a relative path to my Assets\Resources folder. I mean, even if I've pointed directly to my texture, selecting it in a Texture variable, it still fails trying to locate it.
Please help
/Bad