DoozyUI丨(十四)Managers:Game Event Manager 与 UIPopup Manager

大家好,我是SKODE。

小提示:选中左侧目录,可快速找到所需内容

本系列博客地址:传送门

一、Game Event Manager 

该组件作用:

该组件我们不用管,只需要了解。该组件是DoozyUI自动生成的。

Game Event Manager包含针对系统事件的预定义操作。 如果发送的游戏事件(game event)是系统事件(system event),则触发其预定义的动作。 如果游戏事件字符串包含在SystemGameEvent枚举值中,则将其视为系统事件。

SystemGameEvent枚举值:

  • ApplicationQuit – Exits play mode (if in editor) or quits the application if in build mode

  • Back – Triggers the ‘Back’ button system function

我们唯一用到的地方,可能是:

DoozyUI的控制面板,Debug选项卡打开Game Event Manager 选项。

当执行GameEvent时,就能在Console里看到哪个物体执行了什么GameEvent了。

猜你喜欢

转载自blog.csdn.net/weixin_38239050/article/details/107331440
今日推荐