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

Hi Everyone,

I have two questions about Wwise 301 Lesson 5 Quiz need for help

  1. A Wwise-Type Switch must be set from the same script as where the property is declared ? The answer is False. I don't even understand what they want to ask.

  2. A Switch can be set on both a global and per gameobject basis ? The answer is True. I searched for 301 Lesson 5 material. All materials show Switch is set per gameobject basis.

Thanks

in General Discussion by CHI-WEI C. (130 points)

1 Answer

0 votes

Hi CHI-WEI C, 

1) In Lesson 5 - Setting a Switch using a Wwise-Type, you learn that Wwise-Type properties do not have to be in the same script as where you set it from.
The purpose of this exercise is to not let yourself be limited by handling everything in one script, but rather take advantage of making a system of scripts that interact with each other.

For instance, you could make one script for all switches, that looks something like this...

... but this example requires a reference to the surface, rather than just having a script on the surface object, that acts as a "label" of what Switch to set. Like this. 


This may not be the best solution for every game, but it's good to know that this is possible, especially as referencing objects across unity scenes are not supported. 


2) Yes, all material shows best practice, which is to use Switches on a per-game object basis, but it is still "possible" to use them for global purposes.
That said, I see how the question can seem confusing, so we'll see what we can do about it for the next update. Thanks!

I hope it clears it up. 

by Mads Maretty S. (Audiokinetic) (40.2k points)
...