Sometimes you want to show the cursor and pause the camera control in Voxel Play (so user can use some in-game menu or execute a drag&drop operation in inventory, etc.).
You can use the following code:
Cursor.visible = true; Cursor.lockState = CursorLockMode.None; env.input.enabled = false; // pause camera control
(where "env" is just VoxelPlayEnvironment.instance).
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article