大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
...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
...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
...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
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 新手开发游戏,求思路 问题状态 最新活...
来源: Laya_社区 发布时间: 20190419
...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
...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 请教下微信小游戏的内存和数据缓存? Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。...
来源: Laya_社区 发布时间: 20170904
...pe: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); this.onFontLoaded(); }), Handler.create(this, (progress) => { console.log('bitmapFont loading', progress); }...
来源: Laya_社区 发布时间: 20190225
...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
...); 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
...ass page2 extends Laya.Scene { constructor() { super() } onOpened (args) { console.log(args) } } 附件 : --> 2018-11-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同来自: 感谢分享~! ...
来源: Laya_社区 发布时间: 20181124