How do I show the cursor?

Modified on Tue, 28 Dec 2021 at 07:23 PM

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

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article