chenbin 822fa7d64a fix:更新uivm生成代码 | 2 months ago | |
---|---|---|
.. | ||
.vscode | 7 months ago | |
Templates | 3 months ago | |
.gitignore | 7 months ago | |
CodeWriter.d.ts | 7 months ago | |
CustomInspector_fui.bytes | 4 months ago | |
GenCode_CSharp.js | 2 months ago | |
GenCode_CSharp.ts | 2 months ago | |
GenCode_TypeScript.js | 7 months ago | |
GenCode_TypeScript.ts | 7 months ago | |
README.md | 7 months ago | |
editor.d.ts | 7 months ago | |
icon.png | 7 months ago | |
main.js | 5 months ago | |
main.ts | 5 months ago | |
package.json | 7 months ago | |
puerts.d.ts | 7 months ago | |
tsconfig.json | 7 months ago |
fgui的插件-生成ts、cs代码
生成cs还是ts代码的话需要自己修改main.ts然后编译一下插件即可
function onPublish(handler: FairyEditor.PublishHandler) {
if (!handler.genCode) return;
handler.genCode = false; //prevent default output
console.log('开始生成代码');
// genCodeTs(handler);
genCodeCS(handler);
}
UnityProject
Assets
Packages
ProjectSetting
TsProj
src
data
ui // * fgui导出代码目录位置,建议相对目录
framewrok
ui
BaseUI.ts // * 界面基类、通用类位置
UIProject
plugins
fgui_plugin_gen_code // * 本插件目录位置
```
需要在fgui编辑器设置中勾选导出设置