大约有 854 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(461) Laya3.0_api(77) laya_api(70) Laya2.0_api(64) Laya3.0_文档(56) Laya2.0_文档(50) Laya2.0_示例(39) Laya_示例(37)
...t h = canvasInfo.h//tex.height; let w = tex.width; let h = tex.height; ctx.size(w,h); ctx.asBitmap = true; // ctx.clearRect(0,0,w,h); let _targets= ctx['_targets']; _targets.start(); ctx.clear(); this.drawTex(ctx,this.bUrl,x,0); // this.drawTex(ctx,this.cUrl,x,0); ctx.flush(); _targets.end(); _targe...
来源: Laya_社区 发布时间: 20230328
...商,面向AS/JS/TS开发者提供HTML5开发技术方案!\n" ;this.txt.size(200,100);this.txt.borderColor = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrol...
来源: Laya_社区 发布时间: 20180125
... class[MiniAdpter] already exist: Object {init: } ShaderCompile use time:7 size:1426/6889 GradientDataNumber warning:the forth key is be force set to 1. GradientDataNumber warning:data count must lessEqual than 4 GradientDataNumber warning:the forth key is be force set to 1. GradientDataNumber warni...
来源: Laya_社区 发布时间: 20190301
...Button(label) { var w = 110; var h = 40; var button = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FFFFFF", "center"); Laya.stage.addChild(button); return button; } function onPlayMusic(e) { console.log("...
来源: Laya_社区 发布时间: 20170527
... IDE可以用这个方法:LayaAir2.exe --js-flags="--max_old_space_size=4096" layaair2-cmd可以修改: C:\Users\xxx\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\commander\index.js 2021-08-13 1 1 分享 微博 QZONE 微信 Laya_小小泽 赞同来自: 感谢反馈,麻烦...
来源: Laya_社区 发布时间: 20210812
... width: 300px; height: 200px; overflow:auto; font-size:20px; line-height:38px; font-family:"微软雅黑"; color:#000; text-align:justify; text-justify:inter-ideograph; -webkit-text-align-last:justify;/*chrome 20+*/ -moz-te...
来源: Laya_社区 发布时间: 20180103
...&& (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
...ective 透视投影,Orthography正交投影,选择正交投影还包括Size,是指正交摄影机的视口大小。 ##### Field of View 视野范围 相机的视角宽度,以及纵向的角度尺寸。 ##### Clipping Planes 裁剪平面 从摄影机到开始渲染和停止渲染的距离。...
来源: Laya2.0_文档 发布时间: 20210715
...4080"); blue.pos(150, 150); blue.size(500, 500); blue.on("click", this, onClick); Laya.stage.addChild(blue); //增加一个容器 box = new Sprite(); ...
来源: Laya_社区 发布时间: 20161122
...3 不要在Timer的循环里创建对象及复杂计算4.4 尽量少用autoSize与getBounds4.5 被try catch的函数执行会变得非常慢五、使用chrome的性能分析器5.1 CPU占用分析5.2 内存占用分析六、纹理压缩的使用性能优化 一、 内存优化方式 1.1 通过对象...
来源: Laya3.0_文档 发布时间: 20251010