Heres my script when i press “e” it doesnt unlocks the cursor.
if(Input.GetKeyUp("e"))
{
if(InventoryShow == false)
{
Screen.showCursor = true;
}
}
When i press “e” the GUI shows up but the cursor locks.
Heres my script when i press “e” it doesnt unlocks the cursor.
if(Input.GetKeyUp("e"))
{
if(InventoryShow == false)
{
Screen.showCursor = true;
}
}
When i press “e” the GUI shows up but the cursor locks.
You can try adding Screen.lockCursor = false; to your script. Unity - Scripting API: Screen.lockCursor