FairyEditor里使用插件
我在FairyEditor里使用插件写了如下的代码,
我看到 https://github.com/fairygui/FairyGUI-Editor/tree/master/plugin/LuaAPI/CS_FairyEditor_PublishHandler.lua 在这个文档API里是有这个接口的,请问新版的编辑器是否移除了这个接口?我用的编辑器版本是2022.1.0p1
function onPublish(publishHandler)但点发布的时候报错了
publishHandler:add_onComplete(function()
fprint("haha")
end)
end
function onDestroy()
end
我看到 https://github.com/fairygui/FairyGUI-Editor/tree/master/plugin/LuaAPI/CS_FairyEditor_PublishHandler.lua 在这个文档API里是有这个接口的,请问新版的编辑器是否移除了这个接口?我用的编辑器版本是2022.1.0p1
没有找到相关结果
已邀请:
4 个回复
谷主
赞同来自:
ray555
赞同来自:
谷主
赞同来自:
调用方法应该是publishHandler:onComplete('+', lua_event_callback)
ray555
赞同来自: