Show the Cursor

beginner faq

Voxel Play 3 · Troubleshooting & FAQ

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).