Many textures in a script

I’m having to dynamically swap textures in a script that gets attached to several game objects. I’d like to know if it’s possible to access/reference the textures directly in the scripts instead of having to point assign each one individually in the inspector. It would save me a lot of time. Any advice?

I’m not sure, Just did a google search and turned up null. I am pretty sure it is possible though. Just look around the forums.

Use an array of textures.

not sure about what you want to do , you do that while you game is running ?

if so you could put your textures in Resources folder , and use Resources.Load() to assign your textures, you will just have to point to the correct path / texture name in your script that’s all.

I wish to assign textures to parameters within scripts without having to do so in the inspector. What you suggest might work. Will give it a try.