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

大约有 175 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0040 秒)

1. 有没有浮雕滤镜? [ 100%]

...以下的滤镜和混合模式 /**@private 模糊滤镜。*/ public static const BLUR:int = 0x10; /**@private 颜色滤镜。*/ public static const COLOR:int = 0x20; /**@private 发光滤镜。*/ public static const GLOW:int = 0x08; public static const NAMES:Array = /*[STATIC SAFE]*/["normal", "add"...

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

2. swf预加载问题 [ 99%]

....Handler; public class BeforLoader extends EventDispatcher { public static const BEFORLOADERFINISH:String = "BeforLoaderFinish"; private const ADDONE:String = "bingan/AddOne.swf"; private const BG:String = "bingan/bg.swf"; private const CDOWNBIN:String = "bingan/cDownBin.swf"; private const CUOLE:St...

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

3. 关于2.1.0代码设计的疑问 [ 99%]

... Vector3 的疑问 如下:2.1.0的Vector3 /**@private */ public static const _ZERO:Vector3 =/*[STATIC SAFE]*/ new Vector3(0.0, 0.0, 0.0); /**@private */ public static const _ONE:Vector3 =/*[STATIC SAFE]*/ new Vector3(1.0, 1.0, 1.0); /**@private */ public static const _NegativeUnitX:Vector3 =/*[STA...

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

4. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 98%]

...参考代码   export class CatmullRomSpline { private points: number[]; constructor(points: number[]) { if (points.length < 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } ...

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

5. const 用法 [ 98%]

LayaAir引擎 const 用法 const 什么使用啊!只能在函数中定义const吗,我定义成成员变量不行吗? 附件 : --> 2017-04-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同...

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

6. TextInput有禁用中文输入法的功能吗? [ 98%]

... 提交 2 个回复 Laya_Aaron 赞同来自:         static public const TYPE_TEXT:String = "text";         /** password 类型用于密码域输入。*/         static public const TYPE_PASSWORD:String = "password";         /** email 类型用于应该包含 e-mail ...

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

7. drawToCanvas无法截取到有子元素。 [ 96%]

... 1 分享 微博 QZONE 微信 liqunyang 赞同来自: // test drawToCanvas const sp1 = new Sprite(); sp1.loadImage('bet/cheer_1_3.png'); const sp2 = new Sprite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, ...

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

8. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 96%]

...ev-tools   a)、创建并编写脚本 tools-compile.js#!/usr/bin/env node const program = require('commander'); const { fork } = require('child_process'); const path = require('path'); program.parse(process.argv); const projPath = path.join(__dirname, '../'); const layaCompileDir = path.join(projPa...

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

9. ts加密md5码封装 [ 95%]

... arr; if (Array.isArray(str)) { arr = str; } else { arr = str.split(""); } const paddingStr: any[] = this.range(length - str.length).map(() => char); const result = tail ? arr.concat(paddingStr) : paddingStr.concat(arr); return isArray ? result : result.join(""); } little_endian(charCode: number)...

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

10. 加了两个遮罩后的动画,帧频只有10了,有demo,有项目,有源码 [ 95%]

...ask_Demo 源码 https://github.com/wildfirecod ... le.ts  class GameMain{ constructor() { Laya.init(1920,950,Laya.WebGL); Laya.Stat.show(); const container = new Laya.Sprite(); Laya.stage.addChild(container); const mask = new Laya.Sprite(); mask.graphics.drawPoly(0, 0, [0, 0, 484, 0, 1483, 950, 0, ...

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