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

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

261. 在微信小游戏中使用BitmapFont会导致报错. [ 55%]

...ont();     timerFont.loadFont('res/timerfont.fnt', Laya.Handler.create(this, () => {         Laya.Text.registerBitmapFont('Name', timerFont);         Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded));     })); }  function onLoaded(): void {     ...

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

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

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

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

263. 微信小游戏iOS平台下的Laya.timer.delta在设置Laya.timer.scale=0后会异常暴增 [ 54%]

...nsole.log("updateTimer|" + Laya.timer.currFrame + "|" + Laya.timer.delta); this.timeCounter += Laya.timer.delta; } 现在临时的解决方案,用变量tmpDelta记录onHide时的Laya.timer.delta,在帧循环中如果此变量tmpDelta的值>0,则使用之,否则使用Laya.timer.delta 2018-08-06 ...

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

264. 微信小游戏加载资源问题 [ 53%]

...annel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; ...

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

265. 头条/微信/OPPO/vivo/趣头条/百度 等渠道发布 [ 53%]

...eTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 星夜 相关问题 关于微信小游戏关系链的问题...

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

266. Laya3d加载Arena/Arena.ls报错 [ 53%]

...);             // Log.Info("Procedure::setup");             // this.InitGameManager();         } 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 创建的是空项目 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 刚又试了下,创建3d示例项目,...

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

267. 分享:Graphics下cmds命令流的使用! [ 53%]

...','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=L...

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

268. 【字节小游戏】游戏中播放视频 [ 53%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video(); 2020-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

269. ts 中能使用 装饰器吗 [ 53%]

...node_modules  目录下一直有tslib模块,但是编译还是会报 “This syntax requires an imported helper but module 'tslib' cannot be found”错误,不管noEmitHelpers是不是=false。(两天了,我实在找不到方法了,才@你,大佬) 2020-03-10 0 2 分享 微博 QZONE 微信...

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

270. LayaAir IDE 语言包的使用? [ 52%]

...aya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():void { var obj:Object=Laya.loader.getRes("lang.lang"); Text.langPacks=obj; var texts:Text=new Text(); texts.text="hello!welcom LayaBox"; Laya.stage.addChild(text...

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