大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0124 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... } this.length--; if (index!==this.length){ var end=this.elements[this.length]; // @xd added, 添加end是存存在判断 ...
来源: Laya_社区 发布时间: 20190618
...UI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChi...
来源: Laya_社区 发布时间: 20180529
...码大致如下: Laya.loader.load('player/player.json',Laya.Handler.create(this, this.onLoaded),null); ----onComplate: Laya.Animation.createFrames(['player-left.png'], "walk-left"); 2016-06-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20160610
...;1 __proto.worldToViewportPoint=function(position,out){ Matrix4x4.multiply(this._projectionMatrix,this._viewMatrix,this._projectionViewMatrix); this.viewport.project(position,this._projectionViewMatrix,out); var outE=out.elements; if (out.z < 0.0 || out.z > 1.0){ outE[0]=outE[1]=outE[2]=NaN; }...
来源: Laya_社区 发布时间: 20171229
... if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, th...
来源: Laya_社区 发布时间: 20171201
this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Fait...
来源: Laya_社区 发布时间: 20171109
...age.bgColor = "#232628"; Laya.loader.load(aniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.Loader.ATLAS); } createAnimation() { const Animation = Laya.Animation; let ani = new Animation(); Laya.stage.addChild(ani); ani.loadAtlas(aniConfPath); // 加载图集动画 ani.interva...
来源: Laya2.0_示例 发布时间: 20251219
...资源zip包已经上传 请各位大佬解答一下 //加载spine动画 this.skeleton = new Laya.Skeleton (); Laya.stage.addChild(this.skeleton); this.skeleton.pos(parseInt (npcPos[0]), parseInt (npcPos[1])); this.skeleton.load (this.curNpcInfo.npcPath); 附件 : --> 70003.zip 2019-05-16 ...
来源: Laya_社区 发布时间: 20190516
定时器会互相影响吗 Laya.timer.loop(10, this, this._loopRefresh, [], false);一个定时器用来倒计时 一个定时器有个延时执行Laya.timer.once(100, this, this._checkIsSame, [1], false); 这不是两个定时器吗 为什么第二个延时执行的时候第一个会停住啊 第...
来源: Laya_社区 发布时间: 20180914
...示 然后尝试先调用Laya.loader.load("sfx/hit01.mp3",new Laya.Handler(this,this.onBgmComplete),null,Laya.Loader.SOUND);然后在onBgmComplete的回调里面再调用播放,就会提示 [warn]Retry to load: sfx/hit01.mp3 [error]Failed to load: sfx/hit01.mp3 但是资源文件确实是存在的...
来源: Laya_社区 发布时间: 20180422