大约有 290 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0049 秒)
...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
...会出现描述的情况。 Laya.loader.create(path, completeCallBack, this.loadProgressCallback, type).on("error",null,function(msg){ console.error("ERROR",msg) }) 2019-06-17 添加评论 悬赏 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20190617
...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
...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
...eTexture.width, shareTexture.height); 下一行报错: Uncaught TypeError: this.bitmap.activeResource is not a function 2020-05-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 星夜 相关问题 关于微信小游戏关系链的问题...
来源: Laya_社区 发布时间: 20190910
...); // Log.Info("Procedure::setup"); // this.InitGameManager(); } 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 创建的是空项目 2017-08-03 0 0 分享 微博 QZONE 微信 oayx 赞同来自: 刚又试了下,创建3d示例项目,...
来源: Laya_社区 发布时间: 20170802
...','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
...位置,对齐的位置和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
...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
...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