大约有 172 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...
来源: Laya_社区 发布时间: 20180307
... 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
....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
....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
...乱掉? 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
...***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
...载 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
...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
...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
... 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