click on a position?

hi, is it possible to do click on a position?

like this
void start(){
click on position(200,100);
}

ha?

According to a quick google search it’s possible to simulate mouse events:

But it’s a bit more complicated since it depends on your operating system.

Edit: In most situations i dont think you have to tho. You should be able to find components on a specific position, for example using a raycast, and then for example manually call their OnClick() method if that’s what you want. So if this question is only about whether or not it’s possible, then that seems to be a yes according to the posted link, but i doubt it’s what you want to do in most situations.

1 Like