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

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

561. setSubPixels画布擦除不掉 [ 47%]

...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

562. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 47%]

...商,面向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

563. 教学文档永恒之光的动画例子,运行效果与例子不符合 [ 47%]

... 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

564. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 47%]

...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

565. Laya2.0项目文件过多导致编译内存不够,请问在哪里设置增加编译内存(急) [ 47%]

... 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

566. HTMLIframeElement报错 [ 47%]

...   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

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

...&& (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

568. 从Unity中编辑并导出摄像机(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 47%]

...ective 透视投影,Orthography正交投影,选择正交投影还包括Size,是指正交摄影机的视口大小。 ##### Field of View 视野范围 相机的视角宽度,以及纵向的角度尺寸。 ##### Clipping Planes 裁剪平面 从摄影机到开始渲染和停止渲染的距离。...

来源: Laya2.0_文档 发布时间: 20210715

569. 类似抠图、挖空效果的实现 [ 46%]

...4080");             blue.pos(150, 150);             blue.size(500, 500);             blue.on("click", this, onClick);             Laya.stage.addChild(blue);                          //增加一个容器             box = new Sprite();  ...

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

570. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

...3 不要在Timer的循环里创建对象及复杂计算4.4 尽量少用autoSize与getBounds4.5 被try catch的函数执行会变得非常慢五、使用chrome的性能分析器5.1 CPU占用分析5.2 内存占用分析六、纹理压缩的使用性能优化 一、 内存优化方式 1.1 通过对象...

来源: Laya3.0_文档 发布时间: 20251010