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

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

11. 颜色滤镜 差值变化 [ 85%]

...le touch {     /**      * 颜色工具类      */ export class ColorTool { private _targetsValue: number = 16777215; private _targetsLastValue: number = null; private targets: Array<Laya.Sprite> = null; public static instance: ColorTool = null; private targetsFilter: Laya.ColorFilt...

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

12. Sprite-缓存为静态图像 [ 85%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { const Sprite = Laya.Sprite, Text = Laya.Text; let textBox = new Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i ...

来源: Laya2.0_示例 发布时间: 20251130

13. 渲染性能实例问题 [ 82%]

...i<10000;i++){txt=new Text();txt.text=(Math.random()*100).toFixed(0);txt.color="#CCCCCC";txt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

14. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...ight后,在Inspector属性面板中会有如下几个属性 (图2-3) Color:点光源的颜色 (图2-4) Intensity:点光源的强度 (图2-5) Range:设置点光源的范围,相当于点光源的照射范围,数值越大,光照范围越大。 (图2-6) Lightmap Bake Type...

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

15. 射线检测-放置物体 [ 80%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = null; //方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = sc...

来源: Laya_示例 发布时间: 20251130

16. laya.d3.math.IBoundsCell_API3.0 [ 76%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115

17. laya.d3.math.FrustumCorner_API3.0 [ 76%]

...0; margin: 0; height: 68px; border-radius: 0; min-width: 310px; background-color: #1A1A1A; background-image: none; border: none; } #laya_content { width: 100%; height: auto; margin: 0px auto 0 auto; } @media (max-width: 767px) { #laya_content { overflow: auto; margin: 0px auto 0 auto; padding: 0; } ...

来源: Laya3.0_api 发布时间: 20230115

18. 输入设备-指南针 [ 73%]

...esText.pos(0, compassImg.y + 400); degreesText.fontSize = 100; degreesText.color = "#FFFFFF"; } // 方位指示器指向当前所朝方位。 function createDirectionIndicator() { directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; directionInd...

来源: Laya_示例 发布时间: 20251130

19. 分享,扩展Laya.Text组件实现简单的富文本 [ 72%]

...新划分文本 private underLineWidth = 0; //下划线长度 private underColor = ""; //下划线颜色 /** * 渲染文字 * @param begin * @param visibleLineCount */ renderText(begin, visibleLineCount) { var graphics = this.graphics; graphics.clear(true); var ctxFont = (this.italic ? "italic " : "...

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

20. 输入设备-指南针 [ 72%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.create...

来源: Laya2.0_示例 发布时间: 20251130