Closed maxzxq closed 1 year ago
using ;
namespace ET.Client { [ComponentOf(typeof(FUIEntity))] public class BasicsPanel: Entity, IAwake { private FUI_BasicsPanel _fuiBasicsPanel;
public FUI_BasicsPanel FUIBasicsPanel { get => _fuiBasicsPanel ??= (FUI_BasicsPanel)this.GetParent<FUIEntity>().GComponent; } }
}
fairygui官方示例,有很多按钮那个页面导入报错,上面是BasicsPanel.cs内容,using后面缺失;同时没有FUI_BasicsPanel 这个文件;
页面必须包含自定义组件名称,不然会被忽略,无法生成对应的FUI_*Panel
谢谢
using ;
namespace ET.Client { [ComponentOf(typeof(FUIEntity))] public class BasicsPanel: Entity, IAwake { private FUI_BasicsPanel _fuiBasicsPanel;
}
fairygui官方示例,有很多按钮那个页面导入报错,上面是BasicsPanel.cs内容,using后面缺失;同时没有FUI_BasicsPanel 这个文件;