Input.mousePosition

how can i convert Input.mousePosition ?

it work fine but for have it false i most to touch outside the rect .

maybe someone know other metod to do a button in a zone of the screen ?

GUI not function in a function Update() .

 var rect = Rect (0,0,80,80);
   
   if (rect.Contains(Input.mousePosition)){
      speed = 1 ; 
   }

I didn’t understand most of your post, but you might want:

Event.current.mousePosition

if you’re within OnGUI()

Sorry for my English …

i need to do a rect where i use it as a button ,as occlusion culling .

can someone help me?