Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

官方示例导入报错 #8

Closed
maxzxq opened this issue Jan 17, 2023 · 2 comments
Closed

官方示例导入报错 #8

maxzxq opened this issue Jan 17, 2023 · 2 comments

Comments

@maxzxq
Copy link

maxzxq commented Jan 17, 2023

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
Copy link

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

@maxzxq maxzxq closed this as completed Feb 16, 2023
@maxzxq
Copy link
Author

maxzxq commented Feb 16, 2023

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants