大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...prite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading)); } function onLoading(progress){ console.log("加载进度: " + progress); } function onComplete(){ console.log('onComplete'); wx.showModal({ title: '提示', content: ...
来源: Laya_社区 发布时间: 20180426
...y 的值,用于控制 clip 对象的显示位置。 clip.on(Event.CLICK, this, onClick);//给 clip 添加点击事件函数侦听。 Laya.stage.addChild(clip);//将此 clip 对象添加到显示列表。 } private function onClick():void { trace("clip 的点击事件侦听处理函数。clip.total...
来源: Laya3.0_api 发布时间: 20231115
... sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分享 微博 QZONE 微信 pal 赞同来自: 这个方法不行啊 还是因为升级laya2.0 之后不能用...
来源: Laya_社区 发布时间: 20170830
...矩形图片即可 Tween.to(obj, { skewY: 180 }, 100, null, Handler.create(this, turnEnd)); function turnEnd() { obj.内容从背面切换到正面(); Tween.to(obj, {skewY: 360}, 100);//就这个步骤没执行完 } Laya_Aaron • 2018-01-02 17:06 好的,正在查找原因,稍后会做回复
来源: Laya_社区 发布时间: 20180102
...置刚体的 isSensor=true, 物体即更改为穿透模式 var rgbody = this.rigidbody.getBody(); if (rgbody.m_fixtureList) rgbody.m_fixtureList.m_isSensor = true; 2.设置sprite的宽度和高度为0,然后间隔一段时间再删除。 2019-11-30 添加评论 免费帖 --> 分享 微博 QZO...
来源: Laya_社区 发布时间: 20191130
...动画问题 Laya.loader.load("res/atlas/move.json", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); //添加到舞台 Laya.stage....
来源: Laya_社区 发布时间: 20171012
...如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不到UI。 后来...
来源: Laya_社区 发布时间: 20180525
...ya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(0, 0, 200, 200, "#ff0000", 1); character.graphics.drawCircle(100, 100, 100, null, "#ff0000", ...
来源: Laya_社区 发布时间: 20170828
...756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._createWebGlTexture (http://192.167.0.100/h5/layawe ... 756:32) at Texture2D.__proto.recreateResource (http://192...
来源: Laya_社区 发布时间: 20180417
...本Laya.Animator发现play方法的存在BUG 龙骨动画play播放时,this._templet.getAnimationCount()报错? 问题状态 最新活动: 2017-08-15 16:42 浏览: 1827 关注: 2 人 popo • 2017-08-15 16:52 这个设置 下播间隔就好 Monica • 2017-08-15 16:55 @popo:不太清楚具体是...
来源: Laya_社区 发布时间: 20170815