-
Notifications
You must be signed in to change notification settings - Fork 0
Testing against different environments
You may target the package to sandbox environment. To do this, go through the following steps:
- Download this file: ServerSettings.txt.
- Change the extension of the file: rename it to "ServerSettings.asset".
Note to Mac users: even if you don't hide extensions, MacOS may still set its name to (...).asset.txt and hide the extension for this file. So please make sure that ".txt" extension has been actually deleted.
- Open the project in Unity, create the folder "Resources" (read "Notes" section to know where) and copy the settings file into that folder.
- Restart Unity to apply the new settings.
To go back to the default settings, remove the "Resources" folder and restart Unity.
-
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.
-
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.