• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0124 秒)

1271. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 84%]

...            }                          this.length--;             if (index!==this.length){                 var end=this.elements[this.length];                 // @xd added, 添加end是存存在判断       ...

来源: Laya_社区 发布时间: 20190618

1272. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 84%]

...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

1273. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 84%]

...码大致如下: 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

1274. 3d 设置相机正交投影,在使用3d转2d 坐标转换不成功 [ 84%]

...;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

1275. 请问如何获取触屏上两个或者更多位置的坐标 [ 84%]

...   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

1276. this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? [ 84%]

this.tranfrom.translate(new Laya.Vector3(0,0,0), false);物体居然也能动?还是往奇怪的方向动,这些API到底有没有经过测试? 2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Fait...

来源: Laya_社区 发布时间: 20171109

1277. 动画-图集动画 [ 84%]

...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

1278. Laya2.1 加载spine动画会随机出现抖动 [ 84%]

...资源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

1279. 定时器会互相影响吗 [ 84%]

定时器会互相影响吗 Laya.timer.loop(10, this, this._loopRefresh, [], false);一个定时器用来倒计时 一个定时器有个延时执行Laya.timer.once(100, this, this._checkIsSame, [1], false); 这不是两个定时器吗 为什么第二个延时执行的时候第一个会停住啊 第...

来源: Laya_社区 发布时间: 20180914

1280. Laya.SoundManager.playSound 无法播放出音效 [ 84%]

...示 然后尝试先调用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