Server Environment
As Per Spec
$8.80
(no ratings)
Date |
Price |
---|---|
日時 |
価格($) |
03/19(2018) |
8.8 |
11/27(2024) |
8.8 |
Jump AssetStore
The same Server Environment selector bundled with our Easy Datalink asset
Switch servers safely! Now with an automatic build label prefab!
Managing different server URLs can be confusing and error prone. Constantly typing different IP addresses introduces typos, you'll have to look up the addresses, remember which is which and which is the one you are actually on. This slowly drains your energy as you work.
A small window can make a big difference
In the window menu you'll find Server Environment, which allows you to choose an URL from a named list you create.
This URL is read-only from code and globally available as Environment.URL
When you build your game, only the currently selected URL goes into the build, so nobody gets the URLs to your internal test environments.
The list, however, is saved as an asset so other people working in the project can also see it.
To prevent people committing environment list and selection changes, you can just set the Assets/ServerEnvironment/Runtime/Resources/Environment.asset and Assets/ServerEnvironment/Editor/Persist/EnvironmentList.asset files in your Version Control system to ignore after they're set.