Question by
Reign-Games · Jan 23, 2018 at 01:38 AM ·
uicursorworldspacelock-cursor
Way to lock cursor to center and still interact with Worldspace ui
I currently have a scene with a worldspace canvas. In this canvas, i have a button and slider. I would like to lock the cusor and hide it in the center of the screen, whilst still being able to click the button and slide the sliders. Much like PULSAR's computer screens and Stationeer's Computer work.
I have already tried Cursor.lockState. But this sets the cursor position to (-1,-1) which, is obviously not the center of the screen and thus, cannot use the buttons.
Comment