u/Expert-Reflection702

Image 1 — Cursor Locking
Image 2 — Cursor Locking
▲ 3 r/UnityHelp+1 crossposts

Cursor Locking

Hi I'm new to unity and i was trying to lock my cursor i tried basic code which in attached screenshot but it just didn't work i decided asking ai and it give me some debug code end of it console started giving some errors so i asked ai to how do i fix it it give me some advices but they didn't work so i end up here if anyone can help me about it i will glad, thanks.

NOTE:
I'm using these assets:

NWH Vehicle Physics 2
Easy Roads
Playmaker
(Also I'm using new unity input system)

u/Expert-Reflection702 — 4 days ago