找物源码导读Cocos Creator 3.8 · assets/scripts
0%
已读 0 / 424
目录— 个文件
目录加载中…
…/core/ui/UIPanelFramePath.ts
1/** 公司固定弹窗标识,不包含具体玩法界面。 */
2export class UIPanelFramePath {
3 public static UICommonPopupPanel = "UICommonPopupPanel";
4}
讲解5 行
弹窗面板名常量人工通读

UIPanelFramePath.ts

只声明一个静态字符串常量 UICommonPopupPanel,作为通用弹窗在面板框架中的唯一标识。打开和关闭通用弹窗时都通过这个名字查找面板,避免在业务代码里散落硬编码的面板名。

整文件只有一个常量,确认它与 UICommonPopupPanel 组件的 ccclass 名称一致即可。

特殊处理与易错点

2注释UIPanelFramePath:公司固定弹窗标识,不包含具体玩法界面。