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

大约有 1,740 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

121. LayaAir下Array.sort如何使用? [ 79%]

...aya.init(550,400); var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? 1 : -1}));(反序)Laya.init(550,400); var arr:Array=[20,40,10,4,34,23,65,5,8]; trace(arr.sort(function(a:*, b:*):Number { return a.x > b.x ? -1 : 1}));(从小到大...

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

122. layaAir 打包成apk后在真机上运行 使用粒子时报错 [ 79%]

...研发商            TypeError: this._emitter.advanceTime is not a function            http://192.168.1.240:8900/bin/ ... :831: TypeError: this._emitter.advanceTime is not a function                        this._emitter && this._emitter.advanceTime(t)           ...

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

123. 加载-错误处理和进度 [ 79%]

...rt laya.utils.Handler; public class Loader_ProgressAndErrorHandle { public function Loader_ProgressAndErrorHandle() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls:Array = ["do not exist", "../../res/fighter/fighter.png", "../../res/legend/map.jpg"]; Laya.loader.lo...

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

124. 2.2.0 Html使用img标签解析错误 [ 79%]

...用img标签解析错误 TypeError: Illegal constructor preload.js:55 at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:11687:24)   at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39)   at Function._parseXML (file:///D:/LayaTest/...

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

125. 报错:__glsl is not defined,而且bundle.js出现__glsl [ 79%]

...sl is not defined,而且bundle.js出现__glsl  bundle.js开始代码:(function (__glsl) { 'use strict'; __glsl = __glsl && __glsl.hasOwnProperty('default') ? __glsl['default'] : __glsl; bundle.js结束代码: onConfigLoaded() { //加载IDE指定的场景 GameConfig.startScene &&am...

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

126. TypeError: Cannot read property '_byteLength' of null [ 79%]

...打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function TypeError: Laya.Browser.window.conch.setFontFaceFromBuffer is not a function Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 关于graphics.drawTexture方法设置纹理报错TypeError...

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

127. 技术文档中的示例js运行报错 [ 79%]

...果 里边的示例运行报错 Uncaught TypeError: this.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() f...

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

128. 微信小游戏子域问题 [ 79%]

... VM317:1 gameSubContextThirdScriptError wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function    微信子域报这个错误。 2018-08-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

129. js继承模式 [ 79%]

js继承模式     new function() { var className = 'BackGround'; window[className] = (function() { Laya.class(Class, className, Laya.Sprite); function Class() { Class.super(this); // this定义.. this.init(); } Class.prototype.init = function() { console.log(this); }; return Class; })(); } var _...

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

130. ide发布web后报错 [ 79%]

ide发布web后报错 Uncaught TypeError: this.preinitialize is not a function     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at i (laya.ui.min.js:1)     at GameUI (layaUI.max.all.js:9)     at Function.<anonymous> (laya.core.min.js:1)     at t (main.min.js:4)     at...

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