Update sample app environment and API values
How to update environment and API values in the sample application.
Read time 1 minuteLast updated 2 days ago
Before you run the Unreal Shooter Game sample app in the Unreal Editor or you build an app from the sample source code, you must update several environment and API values in VivoxGameInstance.cpp and VivoxToken.cpp. By updating these values, you can package and test Unreal Shooter Game (Source) in the Unreal editor.
Find the API endpoint (server), Domain, Issuer, and Secret Key values for your app, in the Unity Cloud Dashboard.
Use the values from the VIVOX API INFO section to replace the following default values in VivoxGameInstance.cpp and VivoxToken.cpp.
-
In VivoxGameInstance.cpp, update the following values:
- Set VIVOX_VOICE_SERVER to the API Endpoint value.
- Set VIVOX_VOICE_DOMAIN to the Domain value.
- Set VIVOX_VOICE_ISSUER to the Issuer value.
- In VivoxToken.cpp, set VIVOX_VOICE_KEY to the Secret Key value.