Other Documentation

Wwise SDK 2022.1.8

◆ SetSwitch() [2/2]

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetSwitch ( const char *  in_pszSwitchGroup,
const char *  in_pszSwitchState,
AkGameObjectID  in_gameObjectID 

Sets the state of a Switch Group.

  • AK_Success if successful
  • AK_InvalidID if the switch or Switch Group name was not resolved to an existing ID
    Make sure that the banks were generated with the "include string" option.
    Note: Strings are case-insensitive.
See also
in_pszSwitchGroup Name of the Switch Group
in_pszSwitchState Name of the Switch
in_gameObjectID Associated game object ID

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise