IcePower / X-ET7

X-ET 是一个融合了 ET, FairyGUI, luban, YooAsset 的缝合怪。
MIT License
277 stars 67 forks source link

官方示例导入报错 #8

Closed maxzxq closed 1 year ago

maxzxq commented 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 这个文件;

yonly1314 commented 1 year ago

页面必须包含自定义组件名称,不然会被忽略,无法生成对应的FUI_*Panel

maxzxq commented 1 year ago

谢谢