Can I have a virtual area to act as a button?

Hello,

I am developing for android, I have GUItextures acting as buttons…
However I need at some places to select a virtual area to be a separate button.
For now I am importing the button area(png) as a different guiTexture.

please check the picture!
Thanks

for example, I have the close button as a separate layer in photoshop…
but if i could select my desired area to act as a button.
(of course appearing only in the scene view)
check the second picture plz

You can just make a transparent image and place that right where you need it.

Use a button and set with with a transparent png (original size of 2x2 so it’ll be small)

you also can use just invisible rect like that

Rect invisibleButton = new Rect(0,0,100,100);

void Update(){
if(invisibleButton.Contains(input.GetMosuseUp(0)){
// do somithing
}
}