How to lock cursor in game?

i have some game need lock cursor in game but idon’t know how to do that pls help me.

1 Like

Hi @HenryHuy, do you mean locking the cursor to the camera, so the camera moves where the cursor moves, or disabling the cursor entirely?

1 Like

yeah i need something like that

Unfortunately it’s not currently possible with the Scripting API, though I have requested this before: Feature Request: add Camera.mouseLocked to the public API

i expected that happen :frowning:
thank for request.