Skip to content

Testing against different environments

opera-pavelg edited this page May 4, 2026 · 11 revisions

You may target the package to sandbox environment. To do this, go through the following steps:

  1. Download this file: https://github.com/opera-gaming/opera-unity-sdk/blob/release/main/api-configs/ServerSettings_sandbox.asset.

  2. Open the project in Unity, create the folder "Resources" (read "Notes" section to know where) and copy the settings file into that folder.

  3. Rename the file to ServerSettings inside Unity.

334807407-03da570d-7fca-475e-a3dc-9a24fd2e4225

  1. Restart Unity to apply the new settings.

To go back to the default settings, remove the "Resources" folder and restart Unity.

Notes

  1. The folder "Resources" could be located anywhere inside "Assets" folder and any of its subfolders. If you create this folder inside "Assets/OperaSDK" it will be ignored by git which probably could be useful in some scenarios. As for the given repository with the sample project, the "Resources" folder with the custom server settings was added to the "Assets" folder and therefore is tracked by git.

  2. The safest way to copy files into the project is by using Unity Editor window, not through the file explorer of the operating system. The second option is also possible but the necessary meta data will not be created automatically in this case. So you need to be more careful.

Clone this wiki locally