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

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

121. image在相应loaded的时候,无法正确获取高度 [ 69%]

...or() { super(); this.on('start', this, this.init); } private init():void { console.log("init", this.x, this.y, this.width, this.height, this.scaleX, this.scaleY); var createOption: any = { isStatic: false, }; this.matterBody = Matter.Bodies.rectangle(this.x, this.y, this.width, this.height, createOp...

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

122. 我二进制资源load之后,为什么通过getRes获取不到。 [ 69%]

...ndler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('cfg===',cfg, Laya.Loader.groupMap); } 2018-08-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

123. laya3.0中jszip使用异常 [ 68%]

...         (zipData: JSZip) => {                         console.log(zipData.files);                         for (let i in zipData.files) {                             console.log(`key=${i},value=${zipData.files[i]}`);                         } ...

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

124. 预加载结束之后还是报lose skin [ 68%]

...is.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: ...

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

125. 加载预制体json,返回值不统一 [ 68%]

...n", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, function (obj) {             console.log('WeiTiao',...

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

126. 2.2.0 bata3 开放域透传功能报错 [ 68%]

...到2.2.0 beta3后,原有的排行榜功能出现了显示问题,查看console应该是开放域没有找到文件。 微信开发工具:   手机调试控制台:   附件 : --> 2019-08-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

127. 怎么才能像HTML5中那样直接操作Canvas [ 68%]

...10, 150, 150,"red"); ctx.fillText("texttt",100,100,"","#ffffff","center"); console.log("draw complete"); 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: LayaAir也是基于canvas...

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

128. Laya下的图片上传示例(完整版) [ 68%]

...y):void { if(file.files.length>0) { if(20*1024<file.files[0].size) { console.log("图片大小不能超过20kb!") }else{ fileReader.readAsDataURL(file.files[0]); //转换图片格式为字符编码 } } }; fileReader.onload = function(e):void { if(Laya.Browser.window.FileReader.DONE == fileRead...

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

129. 使用外部引擎播放layaair制作的.ani [ 68%]

...; //播放Animation动画 tl.play(); tl.on(Event.COMPLETE, this, () => {console.log('end')}); } 2018-08-23 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zyx 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了!...

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

130. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 68%]

...ScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.log('打印=======================================') console.log(idx, pass, this.map['_tileProperties'],this.map['_tileProperties2']); // 30 null {0:undefined} {} } }求官方给个回复 附件 : --> 2DTiled.zip 2019...

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