大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0042 秒)
...re ... ot%3B, Laya.Loader.SPINE).then((templet: Laya.SpineTemplet) => { this.skeleton = new Laya.SpineSkeleton(); this.skeleton.templet = templet; console.log("动画数量:", this.skeleton.getAnimNum()); for (let i = 0; i < this.skeleton.getAnimNum(); i++) { co...
来源: Laya_社区 发布时间: 20250928
粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan); 编辑器里面设置是对的 但是在网页上运行,图片...
来源: Laya_社区 发布时间: 20181220
...pc端正常,代码如下 private playSoundLead() { if (!this.soundMan || this.playBoo) { this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._btnTimeOutPlay.visible = true; ...
来源: Laya_社区 发布时间: 20190919
destroy 报错 for(let i = 1; i<= this.createCountList[floor] ; i++) { let floor1:Laya.Sprite3D = this.scene.getChildByName("floor"+floor+i) as Laya.Sprite3D; if(floor1) { ...
来源: Laya_社区 发布时间: 20180514
...nentInter无效? function UILetterBox(letter, width) { UILetterBox.super(this); letter = letter; this.loadImage('res/jiezou/wenzi2.png'); Laya.loader.load("res/parts/qipao.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); } function onAssetsLoaded(settings) { settings.colorComponent...
来源: Laya_社区 发布时间: 20161230
...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...
来源: Laya2.0_文档 发布时间: 20210714
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { Laya.loader.load("res/comp/dian.part", Handler.create(this, this.onPartLoaded)); } function onPartLoaded(data: any) { let part = new Laya.Particle2D(data); ...
来源: Laya_社区 发布时间: 20170803
... LM20081991 • 2018-01-25 10:10 能否举一个例子,比如我现在是 this.skill = new Laya.Animation(); this.skill.play(); 就是播放技能的动画。是this.skill.interva()这样吗, 中间有没有什么参数?
来源: Laya_社区 发布时间: 20180125
...出现 Cannot read property 'dir' of undefined崩溃 这个是出错信息 this.basePath=this._atlasPath?Loader.getAtlas(this._atlasPath).dir:this._url.split(".swf")[0]+"/image/"; 我们采用的播放模式是this.effectMovieClip.load(effectsPath,true); effectsPath 是路径 我们的swf 文...
来源: Laya_社区 发布时间: 20180408
...ketTask.onmessage callback function 2、null is not an object (evaluating 'this._audio.play');at audioContext.onended callback function 3、Cannot read property 'play' of null;at audioContext.onended callback function 2、3应该是一样的 layaide 版本 1.7.16 微信开发者工具 版本 1.02.18...
来源: Laya_社区 发布时间: 20180728