大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 提交 1 个回复 Laya_Fred 赞同来自: 您好,通过您代码内的this.Music.startTime在浏览器web端上调用时可以的,this.Music在创建时候会返回一个webAudioSoundChannel时有这个属性的,在微信小游戏内,要对接微信原生的InnerAudioContext,如下图一...
来源: Laya_社区 发布时间: 20230306
...7-08-23 0 0 分享 微博 QZONE 微信 shimp 赞同来自: 那请问: 1. this.sk_51 = new Laya.Templet(); this.sk_71 = new Laya.Templet(); this.sk_51.loadAni("birdami/slots_51.sk"); this.sk_71.loadAni("birdami/slots_71.sk"); 在加载多个.sk的情况下,如何知道所有的.sk文件都加...
来源: Laya_社区 发布时间: 20170823
... createMap(); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); })(); //创建地图 function createMap() { //创建地图对象 tiledMap = new TiledMap(...
来源: Laya_社区 发布时间: 20180614
...化一定时间后心跳变成一分钟一次了 Laya.timer.frameLoop(1, this, this.run, null); private last:number = 0; private run() { let now = Date.now(); console.log("fightmng run >> " + now, " usetime:"+(now-this.last)); this.last ...
来源: Laya_社区 发布时间: 20220302
...ypescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLoc...
来源: Laya2.0_文档 发布时间: 20210715
...ypescript //监听一次点击事件 Laya.stage.once(Laya.Event.MOUSE_DOWN,this,function () { scene.addChild(layaMonkey); this._layaMonkey = layaMonkey; //设置缩放 var tmpLocalScale = layaMonkey.transform.localScale; tmpLocalScale.setValue(0.3, 0.3, 0.3); layaMonkey.transform.localScale = tmpLoc...
来源: Laya2.0_文档 发布时间: 20210715
...如何实现通过点击1个【新增】按钮,添加1个同样的box? this.list_item.addItem(this.list_item.box_item); 用上述那行代码无法实现,是少了什么吗? 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20181219
...el: Laya.Label = res.create(); //添加预制体Label字体到box节点下 this.box.addChild( label ); } ); } } 运行效果如图3-6所示 (图3-6) 3.2 3D预制体 3D预制体的使用过程同2D预制体一样,在这里我们就不介绍如何制作预制体了,通过下面的示例来看...
来源: Laya3.0_文档 发布时间: 20241014
...一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.19186599730944645 0.52519...
来源: Laya_社区 发布时间: 20180717
仅在Android微信小游戏下图片错乱 static preLoadPublicAssets(){ this.sAssetList = Loader.getRes("file_list.json") Laya.loader.load("res/ui/share@atlas0.png", Handler.create(this, this.onLoaded), null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets in...
来源: Laya_社区 发布时间: 20180609