Hi all.
How do you define the texture or picture name in the editor? For example, If I have a texture named “Gun”, how can I say that when I press “A” I want the texture inside the OnGUI() function to be changed to “Gun” texture, when pressed “B” the texture is changed to “Rifle” etc…
I know how to do the array with multiple textures already assigned, and then swapping them, but that’s not what I need.
Thanks.