I have a texture in the 'project' tab, I want to 'find' it in script:
Texture tex = ??
Is there a way to do this similar to Shader.Find or do I have to attach it to a GameObject and do via the GameObject?
I have a texture in the 'project' tab, I want to 'find' it in script:
Texture tex = ??
Is there a way to do this similar to Shader.Find or do I have to attach it to a GameObject and do via the GameObject?
You could use Resources.Load if you put the texture into /Assets/Resources. You then use Resources.Load("RelativePathToTextureFromResources").