Note: Unity Remote Config is now available as a preview package. Remote Config is an improved offering that allows you to change the behavior and appearance of your game without requiring a new binary. You can remotely enable or disable features, change the specifics of your game to target specific audiences, or run special events by scheduling new content releases.
虽然您可以在 Editor 中查看两种配置的键和值,但是 Unity 在运行时只加载一种配置。Unity 在 Play 模式中以及在 Build Settings 窗口内选中 Development Build 复选框的情况下创建的任何版本中会使用 Development 配置。Unity 在非开发版中使用 Release 配置。
在测试 Remote Settings 之前,必须首先创建设置,然后使用 Remote Settings 组件 或编写所需代码将设置映射到游戏或应用程序中的变量。
要使用 Development 配置进行测试,请单击 Editor 中的 Play 按钮,或:
转至 File > Build Settings 以打开 Build Settings 窗口。
选中 Development Build 复选框。
单击 Build And Run 按钮。
要使用 Release 配置进行测试:
转至 File > Build Settings 以打开 Build Settings 窗口。
取消选中 Development Build 复选框。
单击 Build And Run 按钮。
要测试您的游戏在第一次运行时没有本地设置的情况下是否表现如预期,您可以清除 Application.persistentDataPath 目录。如果要在 Unity Editor 中进行测试,必须在清除该目录之前退出 Editor。
2017–05–30 页面已发布
截至 2018–08–13,服务与 Unity 5.5 之后的版本兼容,但是版本兼容性可能会发生变化。
2017.1 中的新功能
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.