Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes

Hello everyone,

I created a UI clock script to simulate a day/night cycle. The script works.

I also created a Blend Container in Wwise with two ambient sounds (one for day, one for night). The Event works in Wwise.

My problem: I don't know how to integrate the RTPC into my clock script to ensure that the passage of time is linked to the RTPC values.

Here is a screenshot of my GameParameter in Wwise : LINK

Here is the script: LINK

Thank you in advance for your help!

ago in General Discussion by Tom Mébarki (100 points)

1 Answer

0 votes

Hi Tom,

The Wwise Unity Integration course includes a specific lesson and example on setting Game Parameters using Wwise-Types: Setting Game Parameters using Wwise-Types.

This lesson specifically features a "TimeOfDay" example, which seems relevant to your question.

Does this answer your question?

ago by Alessandro Famà (3.3k points)
Hello. Thanks for your reply!
Yes, I tried to solve the problem by following this chapter of the course. From what I understand, I can't associate RTPC with a parameter that isn't a float. The problem in my script is that my currentTime is generated from a date.time (timespan). So I looked for how to convert it to a float, but I haven't found anything that solved my problem so far. That's why I was asking if there was a simpler and more general solution to associate a Game Parameter with a time reference (and how to generate it)
Thanks again!
...