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

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

111. 音效无法播放 [ 66%]

...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...

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

112. 请问特效播放的速率可以自定义吗? [ 66%]

... 2018-04-11 16:27 Laya.loader.load("shadeY.part",Handler.create(this,onParticleLoaded),null,Loader.JSON); private function onParticleLoaded(settings:ParticleSetting):void { settings.minStartSize = 200; settings.minEndSize = 200; settings.maxStartSize = 200; settings.maxEndSize = 200; par =...

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

113. 动画混合问题,Avatar动画混合报错. [ 66%]

....Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya...

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

114. new Laya.Templet() 时,说这不是一个constructor [ 66%]

....0的“技术文档 → 动画进阶 → 示例代码”是这样写的!this.templet = new Laya.Templet();  2018-12-12 0 1 分享 微博 QZONE 微信 180*****237 赞同来自: 碰到同样问题了,我用的是LayaAir2.0。也是说: TypeError: Laya.Templet is not a constructor   能有详...

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

115. list 加载动画为什么实现的效果会错乱掉? [ 66%]

...乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前播放索引 ...

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

116. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,会出现返回0的情况 [ 66%]

...***233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return false } ...

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

117. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 66%]

...载 Laya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(this,function(scene) { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_...

来源: Laya2.0_文档 发布时间: 20210715

118. 游戏系怎么把一些共用的功能独立出来 [ 65%]

...ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模...

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

119. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 65%]

...the .lh file root type must be Scene,please use other function to  load  this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to  load  this file.     at MyScene.__proto.onAsynLoaded (http://127.0.0.1:59022/game/code....

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

120. parameter 2 is not of type 'WebGLTexture'. [ 65%]

... videoElement.load('res/video/mov_bbb.mp4'); // 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加...

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