I need help with my coding.

I’ve been trying to make a first-person game but it will say when I put in the following code.
Cursor.lockmode = CursorLockMode.Locked;
It doesn’t work because it says Cursor does not have the definition for Lock mode.
Can you all please help?

My guess would be that you have your own class in the project named Cursor

maybe try lockState?

Cursor.lockState = CursorLockMode.Locked;

i will

ok ill do that maybe

oof when i wrote the page i put lockmode even tho its lockstate