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

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

141. sp.emitter.stop 在 app 下会报错 [ 71%]

...layaplayer下遇到了,于是我使用​下列代码便解了问题。//this.sp.emitter.stop(); this.sp.stop(); 2017-09-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 目前1.7.11beta版本的引擎库和0.9.10版本的LayaNative下是没有问题的,可以更新看下 20...

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

142. Text.as中parseLines方法里的问题 [ 71%]

...行位置或截断位置 var needWordWrapOrTruncate:Boolean = wordWrap || this.overflow == HIDDEN; if (needWordWrapOrTruncate) { var wordWrapWidth:Number = getWordWrapWidth(); } if (_currBitmapFont) { _charSize.width = _currBitmapFont.getMaxWidth(); _charSize.height = _currBitmapFont.getMaxHeight();...

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

143. [QQ小游戏适配] Laya.loader.create 在QQ安卓版本上 执行没有成功回调,也没有进度回调,监听了error 也没有。在ios版QQ上正常。 [ 71%]

...会出现描述的情况。  Laya.loader.create(path, completeCallBack, this.loadProgressCallback, type).on("error",null,function(msg){ console.error("ERROR",msg) }) 2019-06-17 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

144. 2.0.0beta5 can not find class Laya.Text [ 71%]

...运行报错 Uncaught Can not find scene:GameView.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. LayaNative2.2运行报错。:getBitmapData ...

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

145. 音效无法播放 [ 70%]

...请: 与内容相关的链接 提交 3 个回复 zhouxiaodan 赞同来自: this.musicPath = "res/sound/bg.mp3"; this.soundPath = "res/sound/bianshen.mp3"; 为什么前面加../../就没法播放,去掉../../后就可以播放了呢? 2018-03-07 0 0 分享 微博 QZONE 微信 qian 赞同来自: ...

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

146. 多个模块之间相互嵌套import,导致运行报错 [ 70%]

...{ public sex: number = 0; public Create(): void {} public Attack(): void { this.emit('attack'); } } Manager.ts public CreateCat(): void { let self = this; let cat = new Cat(); cat.Create(); cat.on('attack', function () { self.Change(); }); this.animals.push(cat); }   2019-02-26 0 2 分享 微博 QZ...

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

147. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 70%]

...    var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var image:Image = new Image();             image.blendMode = "add";             image.skin = "res/...

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

148. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 70%]

...TATIC_IMG_PATH+'progressBar.png', STATIC_IMG_PATH+'progressBar$bar.png' ]; this.isFirst = true; console.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqclou...

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

149. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 70%]

...ict checking of property initialization in classes. */     // "noImplicitThis": true,                /* Raise error on 'this' expressions with an implied 'any' type. */     // "alwaysStrict": true,                  /* Parse in strict mode and emit "use strict" for each source fi...

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

150. graphics使用matrix的异常情况 [ 70%]

...异常情况 Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ape.graphics.scale(1.01, 1) Laya.stage.addChild(ape); ape.pos(200, 0); })); 上面这段...

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