Unity 在多个级别/场景中管理 GUI

Unity manage GUI in Multiple levels / scenes

我是 Unity 新手。我正在制作具有多个 levels/scenes.

的 Unity 2D 游戏

在我的场景中,我将moving objects从预制件创建,GUI(暂停按钮,菜单按钮,文本当前分数,文本最高分等),我还想创建two UI panels 有他们自己的 UI 个组件,一个用于关卡通过,另一个用于关卡失败。

据我所知,我需要从菜单中创建一个新的 scene/level 以添加一个空的新菜单。 我应该在每个新 scene/level 上复制所有 GUI 按钮和面板,还是有任何方法可以重用这些 GUI 组件?

I must use new levels, not randomly generated levels all the time

谢谢

As I know I need to create new scene/ level from the menu to add new one which is empty. My question is should I make a copy of all the GUI buttons and panels on every new scene/level, or is there any way to reuse these GUI components?

在一个场景中创建 UI 然后将它们转换成预制件保存。这个预制件可以从其他场景中重复使用和修改。当您需要在场景之间共享项目时,您应该使用预制件。 This 视频展示了如何从场景中的对象创建预制件。