menu
 
Version
2024.1.7.8863

2024.1.7.8863

2023.1.15.8789

2025.1.0.8897

2022.1.19.8584

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624

menu

Wwise Unity Integration Documentation

◆ Subscribe()

static void AkWaapiUtilities.Subscribe ( string  topic,
Wamp.PublishHandler  subscriptionCallback,
System.Action< SubscriptionInfo handshakeCallback,
ReturnOptions  returnOptions = null 
)
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.
returnOptionsThe options the subscription. 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