I’m developing a game based on turf/territory wars, and I plan to have a map overview menu where someone can select a territory and attack it. I’ve looked everywhere, but I can’t seem to find a way to make a texture drawn with OnGUI click-able. How might I do this?
Well… Just use GUI.Button with the texture as it’s image, or draw the texture with GUI.DrawTexture and also put an invisible button in the same space (rect)
If you don’t, for whatever reason, use a button, then you can also use the Contains query with a Rect variable (the one from your GUI.DrawTexture, of course) to check if the current cursor position is inside of it when clicking.