Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2023.1.8.8601 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise Unity Integration Documentation

◆ Subscribe()

static void AkWaapiUtilities.Subscribe ( string  topic,
Wamp.PublishHandler  subscriptionCallback,
System.Action< SubscriptionInfo handshakeCallback 
)
inlinestatic

Subscribe to WAAPI topic. Refer to WAAPI reference documentation for a list of topics and their options. Creates a WaapiCommand object containing a lambda call to SubscribeAsync and adds it to the waapiCommandQueue.

Parameters
topicThe topic URI to subscribe to.
subscriptionCallbackDelegate function to call when the topic is published.
handshakeCallbackAction to be executed once the subscription has been made. This should store the subscription ID so that the subscription can be cleaned up when it is no longer needed.

Referenced by AkWwiseTreeWAAPIDataSource.SubscribeTopics().


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