Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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!

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?

by Alessandro Famà (4.4k 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!
...