Sound Play When Hover Over Response

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
rloft123
Posts: 22
Joined: Wed May 25, 2022 8:11 pm

Sound Play When Hover Over Response

Post by rloft123 »

Hello, so I figured how to add sound effects to a dialogue window popping up, conversation start, response menu, etc via the DialogueSystemEvents script using the Conversation Events. My question was: How can I do something similar when I simply hover over (or highlight) one of the response options in the dialogue without clicking? Is there a simple way to go about this? Thanks.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sound Play When Hover Over Response

Post by Tony Li »

Hi,

Add an Event Trigger and an Audio Source to the button. Configure the Event Trigger's OnPointerEnter() event to play the Audio Source
rloft123
Posts: 22
Joined: Wed May 25, 2022 8:11 pm

Re: Sound Play When Hover Over Response

Post by rloft123 »

Thanks, that did the trick.
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sound Play When Hover Over Response

Post by Tony Li »

Glad to help!
Post Reply