大约有 1,765 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
...Laya.Event) { if (e.keyCode == 65) {//A console.log("释放资源false") Laya.loader.clearRes("res/atlas/comp.json", false); Laya.loader.clearRes("res/atlas/comp.png", false); } if (e.keyCode == ...
来源: Laya_社区 发布时间: 20170317
...plete_FontLoad),null,Laya.Loader.BUFFER); function OnComplete_FontLoad() { console.log("加载字体"); var newFont = Laya.loader.getRes("font/本墨竟圆-常规.ttf"); if(Laya.Browser.window.conch) { console.log("12313131313"); Laya.Browser.window.conch.setFontFaceFromBuffer("本墨竟圆-常规",...
来源: Laya_社区 发布时间: 20180718
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 创建动效模板 可能存在bug 问题状态 最新活动: 2018-01-30 19:22 浏览: 622 关注: 2 人 qian • 2018-01-30 19:49 这个问题我已经问引...
来源: Laya_社区 发布时间: 20180130
...this.ctx.graphics.drawTexture(htmlC, 0, 0,this.ctx.width,this.ctx.height); console.log(htmlC) console.log(htmlC.getPixels(0,0,this.ctx.width,this.ctx.height)) 能搞定图片和texttrue,或者转化Uint8Array了,可是能怎么用啊?怎么转URL,保存到后台啊? 2019-11-24 1 条评论...
来源: Laya_社区 发布时间: 20191124
...ter.window.wx.onHide(onHide); } static private function onShow(res):void { console.warn("小游戏回到前台", res); } static private function onHide():void { console.warn("小游戏隐藏到后台"); } } } 2018-07-26 1 0 分享 微博 QZONE 微信 渔歌 赞同来自: https://developers.weixin.qq...
来源: Laya_社区 发布时间: 20180726
...alse);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { console.log("当前选择的标签页索引: index= ", index); } } 附件 : --> Del5.rar 2016-07-22 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20160722
...Import的功能实现的) import BM from './b'; window.onload = ()=>{ console.log(AM.AC.myname); console.log(BM.BC.myname); console.log(Laya.Browser.clientWidth); } 实际测试能完美运行。 我就一个小疑问,如果我想用namepsace而非module声明AM, BM,我就是坐出痔疮也...
来源: Laya_社区 发布时间: 20181026
...组名称 */ public static loadGroup(groupName: string){ if(!groupName){ console.error("资源组名称不能为空"); RES.getInstance().event(RES.ONLOADGROUPERROR,"资源组名称不能为空"); return; } var group; for(var i in RES.groups){ var name = RES.groups[i].name; if(name == groupName){ gro...
来源: Laya_社区 发布时间: 20161011
....MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log("-----"); console.log(building); console.log("-----"); console.log(moveArea); } private playRun(): void { this.animator.play("Running"); this.animator.speed = 1.0; } private playIdle(): void { this.animator.play("...
来源: Laya_社区 发布时间: 20200917
...ect.on( Laya.Event.CLICK, this, changeVxVy ); } function changeVxVy( e ){ console.log( e.nativeEvent.offsetX ); console.log( e.nativeEvent.offsetY ); } 我设置了一个矩形,并给这个矩形增加了一个点击事件。 我发现e.nativeEvent.offsetX和e.nativeEvent.offsetY返回相对...
来源: Laya_社区 发布时间: 20180201