Page 1 of 1

Sound Play When Hover Over Response

Posted: Thu Dec 01, 2022 4:46 pm
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.

Re: Sound Play When Hover Over Response

Posted: Thu Dec 01, 2022 5:45 pm
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

Re: Sound Play When Hover Over Response

Posted: Fri Dec 02, 2022 4:39 pm
by rloft123
Thanks, that did the trick.

Re: Sound Play When Hover Over Response

Posted: Fri Dec 02, 2022 6:55 pm
by Tony Li
Glad to help!