Community Q&A

Where Wwise users help each other out!

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

Wwise 301 Lesson 5 Quiz

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

asked Sep 20 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. 

answered Sep 21 by Mads Maretty S. (Audiokinetic) (17,730 points)
...