Hide Cursor While Playing
Hide Cursor While Playing
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
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.
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
Excellent, thank you very much it worked!
Re: Hide Cursor While Playing
Happy to help!