fairyGUI学习笔记

1,图片不支持点击事件
2,GLoader也是用的Laya.Loader
3,导出代码出来的Component类似以前flash的fla里面的原件命名后直接可以拿来用
4. GObject类也是 调用Laya原生的Sprite的on侦听事件
public onClick(thisObj: any, listener: Function, args?: any[]): void {
this.on(Laya.Event.CLICK, thisObj, listener, args);
}
public on(type: string, thisObject: any, listener: Function, args?: any[]): void {
this._displayObject.on(type, thisObject, listener, args);
}
5. 前端自动化:谈谈grunt和gulp的区别
fairyGUI和laya2都是用的gulp编译代码

posted on 2021-04-25 06:49  防空洞123  阅读(146)  评论(0编辑  收藏  举报

导航