大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0109 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。 <audio src=...
来源: Laya_社区 发布时间: 20170823
...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); var camera = (sce...
来源: Laya_示例 发布时间: 20251219
...e.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可直接在全局变量处实例化 //切记,无论何种鼠标提示方式,...
来源: Laya_社区 发布时间: 20161115
...he.ls"; public LoadScene3D(): Laya.Scene { console.log("screen#DPath = " + this.screen3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please...
来源: Laya_社区 发布时间: 20180323
...ad([ { url: config.layerUIJson, type: Laya.Loader.JSON } ], Handler.create(this, function () { this.gameScenes = new ui.layer.gameScenesUI(); this.addChildren(this.gameScenes); })); 但页面上却没有任何内容显示出来!求教!!我看了论坛里面的教程:https://ask.layabox.com/q...
来源: Laya_社区 发布时间: 20171012
...stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } function play():void { Laya.timer.loop(5000, this, function():void { playDragonBonesAnimation("BigAward/BigAward.sk",0...
来源: Laya_社区 发布时间: 20170406
...而自动暂停,监听游戏失焦事件:Laya.stage.on(Laya.Event.BLUR,this,this.method); 在失焦的回调里设置: Laya.SoundManager.musicMuted = true; Laya.SoundManager.stopMusic(); 将正在播放的音乐路径存为成员变量; 2.监听游戏获取焦点事件: 监听游戏获...
来源: Laya_社区 发布时间: 20180813
加载U3D导出的LH格式粒子特效,加载完成不回调 this.lz = this.sceneP.addChild(Laya.Sprite3D.load("res/h5/LayaScene_Effect/Effect.lh")) as Laya.Sprite3D; this.lz.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); }); 之前是按照ls导出的不回调...
来源: Laya_社区 发布时间: 20180327
...博 QZONE 微信 biubiubiu 赞同来自: 以下是测试代码 this.owner.scene.scale(1.25, 1.25) //使用缩放后 图片拼合会多一条线 2.0中没有此问题 Laya.loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture...
来源: Laya_社区 发布时间: 20230316
...-Type','application/x-www-form-urlencoded'); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, loader]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 ...
来源: Laya_社区 发布时间: 20180704