【发布时间】:2017-03-28 04:45:00
【问题描述】:
自从
Application.LoadLevel(level);
建议弃用和新的SceneManager,我想问如何使用它来加载/获取简单的参数,如字符串类型以及生命周期的哪些功能是最佳实践?(如Start,Awake)
SceneManager.LoadScene("resultScene", chosenOptions);
注意简化:除了写新类such as之外还有其他选择吗?
【问题讨论】:
-
@umair-m 似乎是一个不错的方法。正如您链接的那样,所有其他方式都涉及创建静态类(基本上与不破坏游戏对象相同)。
标签: c# variables unity3d scene scene-manager