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

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

311. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 63%]

...prite = this.getSprite(); let tx = Laya.Loader.getRes(resName); if (!tx) { console.warn(TipConfig.tips.haveNoTheChar, char); } sp.texture = tx; this.chars.push(sp); this.addChild(sp); } this.sortCharsByAlign(this._align); } /** * 水平对齐方式 */ public set align(v: string) { if (v === this._al...

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

312. JS的WebGL模式下使用Laya.Video报跨域错误 [ 63%]

...ar video = new Laya.Video(); video.on('loadedmetadata', this, function() { console.info(video.width + ',' + video.height); Laya.stage.addChild(video); video.play(); }); video.load(video_url); Laya版本是1.7.4Beta Chrome 58下运行报错   laya.device.js增加跨域属性后解决   附件 : -->...

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

313. 3d项目base64 截图成绩有偏差 [ 62%]

...vent.MOUSE_DOWN, this, function (): void {                 console.log("点击");                 var htmlCanvas:Laya.HTMLCanvas = Laya.stage.drawToCanvas(1334, 750, 0, 0);//把精灵绘制到canvas上面                 var sp:Laya.Sprite = new Laya.S...

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

314. 开发数据域报错wx.getFileSystemManager is not a function [ 62%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 新手开发游戏,求思路 问题状态 最新活...

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

315. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 62%]

...106 if (tCacheType === 'bitmap' && (w > 2048 || h > 2048)) { console.warn("cache bitmap size larger than 2048,cache ignored"); _cacheStyle.releaseContext(); _next._fun.call(_next, sprite, context, x, y); return; } 就是这个 w > 2048 导致 容器的 CacheAs 'bitmap' 废...

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

316. 与服务端通讯,怎么发送ByteArray里的数据? [ 62%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 请教下微信小游戏的内存和数据缓存? Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。...

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

317. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 62%]

...pe: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');                          this.onFontLoaded();         }), Handler.create(this, (progress) => {             console.log('bitmapFont loading', progress);         }...

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

318. Laya.timer.loop 的优先级 [ 62%]

...on delete_majian(){ game.bottom.removeChild(game.bottom.getChildAt(0)); // console.log(game.bottom.getChildAt(0)); }; Laya_Aaron • 2018-02-27 16:19 你用loop 删除东西是要做什么 oy2419498011 • 2018-02-27 16:20 我隔一秒删除索引为0的子节点 Laya_Aaron • 2018-02-27 16:34 是...

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

319. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 62%]

...);      div.size(600,400);      Laya.stage.addChild(div);      console.log(div);  var myChart = echarts.init(div.getCanvas());  // 指定图表的配置项和数据 var option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ["衬衫...

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

320. 针对2.0.0 beta5 setLoadingPage 做增强 [ 62%]

...ass page2 extends Laya.Scene { constructor() { super() } onOpened (args) { console.log(args) } }   附件 : --> 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 感谢分享~! ...

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