大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...博 QZONE 微信 biubiubiu 赞同来自: 以下是测试代码 this.owner.scene.scale(1.25, 1.25) //使用缩放后 图片拼合会多一条线 2.0中没有此问题 Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture...
来源: Laya_社区 发布时间: 20230316
...mage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.destroy(); } } } } 2016-09-05 0 0 分享 ...
来源: Laya_社区 发布时间: 20160905
...写的是 var path="map/mapitem/"+mdai.mapName+"1.lh"; if(this.PRINT_LOG){ console.log("准备读取区域"+curIndex+" 的 路径: "+path+"地图"); } Sprite3D.load(path,Handler.create(null,function(sp){ ...
来源: Laya_社区 发布时间: 20191011
...resource/2.webm'; var video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错 laya.device.js增加跨域属性后解...
来源: Laya_社区 发布时间: 20170508
...错 var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下 附件 : --> 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180206
...undle.js:8383:15) 说是Texture类value && (value._addReference(this._referenceCount)); 这里value._addReference没有,value是个[object HTMLCanvasElement],,死活都画不出来,, 主域代码 Laya.timer.once(2000, this, function():void{ var sprite:Sprite = new Sprite(); s...
来源: Laya_社区 发布时间: 20181123
...态 ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function():void{ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...景位置的更新,实现背景滚动效果。 Laya.timer.frameLoop(1, this, onLoop); })() /** * 在onLoop函数内,更新box容器的位置。 */ function onLoop() { //设置背景容器由上向下移动 1px box.y += 1; //当背景1向下移动出游戏的显示区域 480*852,则将背景1...
来源: Laya_社区 发布时间: 20160810
... if (!ILaya.stage.isVisibility) { // this._timeId = window.setInterval(this._enterFrame, 1000); ILaya.m_worker.postMessage(['wait']); } else if (this._timeId != 0) { ...
来源: Laya_社区 发布时间: 20201201
...sh使用吗? masterbtn.tag = 0; masterbtn.on(Laya.Event.MOUSE_UP,this,this.onItemMaster); _proto.onItemMaster = function(params){ var btn = params.currentTarget; console.log("----------------------- ",btn.tag);//我赋值是0,但这里调用获取是2?? } 2017-11-20 添加评论 免费...
来源: Laya_社区 发布时间: 20171120