Page 1 of 1
Hide Cursor While Playing
Posted: Thu Oct 14, 2021 2:27 am
by ViralJoe
I'm rather new to Dialogue System and now that I have enabled it my cursor shows during gameplay and is no longer locked to the screen. I currently have "Cursor.lockState = CursorLockMode.Locked" in my look around script and that worked before importing and setting up DS. Ideally I would like the cursor locked and hidden during gameplay, visible during the dialogue to select responses, and then hidden again afterwards. Any help on the subject would be greatly appreciated.
Re: Hide Cursor While Playing
Posted: Thu Oct 14, 2021 8:38 am
by Tony Li
Hi,
Inspect the Dialogue Manager GameObject's Input Device Manager component. UNtick Control Cursor State.
To make the cursor visible during conversations, inspect the Dialogue System Trigger that starts the conversation. In Actions > Start Conversation, tick Show Cursor During Conversation.
Alternatively, if you don't use a Dialogue System Trigger to start conversations, you can add a Dialogue System Events component to the player GameObject. Configure the OnConversationStart() event to show the cursor and OnConversationEnd() to hide it.
Re: Hide Cursor While Playing
Posted: Thu Oct 14, 2021 4:44 pm
by ViralJoe
Excellent, thank you very much it worked!
Re: Hide Cursor While Playing
Posted: Thu Oct 14, 2021 4:50 pm
by Tony Li
Happy to help!