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

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

1301. laya2.10两个版本的测试,Oppo分包无法加载,读取资源报错,能加载分包无法读取回调 [ 78%]

.../jni/../../../../../js-bindings/jsb_rt_file_system_manager.cpp: Line: 990, Function: FileSystemManager_readFile 01-06 11:41:34.676 5287-5417/? E/jswrapper: [ERROR] Failed to invoke FileSystemManager_readFile, location: /Users/80235882/project/XGame/instant-game-client/android/lib-rt-core/src/main/jn...

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

1302. Cannot read property 'offCanplay' of null [ 78%]

...perty 'offCanplay' of null at n.onCanPlay (https://usr/game.js:39:9226) at Function.t (https://lib/WAGameSubContext.js:2:153278)Cannot read property 'offCanplay' of null;at audioContext.oncanplay callback function TypeError: Cannot read property 'offCanplay' of null at n.onCanPlay (https://usr/game....

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

1303. 求助高手请进,关于场景导入的问题~ [ 78%]

...Scene_01/loveScene.ls",Handler.create(this,this.completeHandler)); private function completeHandler():void{     var scene:Scene = Laya.loader.getRes("LayaScene_01/loveScene.ls");     Laya.stage.addChild(scene); }   我现在的问题是,我创建一个继承Scene的类,在这个类里边我...

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

1304. UI-RadioGroup [ 78%]

...t = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya...

来源: Laya2.0_示例 发布时间: 20260303

1305. laya.components.AnimationClip2D_API3.0 [ 78%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231115

1306. 教你微信小游戏使用服务端gzip数据。 [ 78%]

...CharCode(Pako.inflate(new Uint8Array(res.data))));   } }); //处理中文 function decodeUTF8(arr,toType)  { //转为utf8编码字符串   let  str  =  '';       for  (var  i  =  0;  i  <  arr.length;  i++)  {             str  +=  String.fromCharCode(arr[i]);      ...

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

1307. 背景音乐问题 [ 78%]

...我代码写错了吗?   var soundControl = true; // 背景乐开关 function onPlayBgMusic(url, loop, rate) {     Laya.SoundManager.playbackRate = rate;     if(soundControl){         Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url]));    ...

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

1308. 关于HttpRequest [ 78%]

...(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/test.php'...

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

1309. 横竖屏设置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 78%]

...随传感器旋转 */ conch.setDeviceOrientation({ value: value, success: function () { console.log("success"); }, fail: function () { console.log("fail"); }, complete: function () { console.log("complete"); }, }); Copyright ©Layabox 2026 all right reserved,powered by LayaAir Engine更新时间...

来源: Laya3.0_文档 发布时间: 20260128

1310. 关于mouseThough=true的问题 [ 78%]

...ea,可以设置多边形点击区域 shiyang • 2018-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets....

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