大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0101 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...ns boolean 此事件类型是否有侦听者,如果有侦听者则值为 true,否则值为 false。 hasListener hasListener(type: string): boolean Inherited from EventDispatcher.hasListener Defined in laya/events/EventDispatcher.ts:21 检查 EventDispatcher 对象是否为特定事件类型注...
来源: Laya3.0_api 发布时间: 20231115
...d { this.counter = new Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) / 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; Laya.stage.addChild(this.counter); } private showTota...
来源: Laya2.0_文档 发布时间: 20210714
...utDevice/kd.png", compassImg, degreesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, ...
来源: Laya2.0_示例 发布时间: 20260303
... = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET; cb.y += this.VERTICAL_SPACING * j + this.Y_OFFSET; // 给左边的三个CheckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, th...
来源: Laya2.0_示例 发布时间: 20260303
...n Defined in laya/events/Event.ts:232 表示 Alt 键是处于活动状态 (true) 还是非活动状态 (false)。 Returns boolean charCode get charCode(): string Defined in laya/events/Event.ts:268 包含按下或释放的键的字符代码值。字符代码值为英文键盘值。 Returns string ct...
来源: Laya3.0_api 发布时间: 20231115
... = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET; cb.y += this.VERTICAL_SPACING * j + this.Y_OFFSET; // 给左边的三个CheckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, th...
来源: Laya_示例 发布时间: 20260303
...ents/AnimatorControllerLayer2D.ts:60 默认权重 enable enable: boolean = true Defined in laya/components/AnimatorControllerLayer2D.ts:70 是否开启 name name: string Defined in laya/components/AnimatorControllerLayer2D.ts:50 层的名字 playOnWake playOnWake: boolean = true Defined in laya/comp...
来源: Laya3.0_api 发布时间: 20231115
... `mini.project.json` 文件中声明如下: ``` "enableEnhancedBuild": true, // 必须 "include":["packageA/**","packageB/**"] //必须 ``` 开发者需要自己去加载分包和资源 ``` my.loadSubPackage({ name: 'packageA', success: (res) => { this.setData({ subpackageReady:true }) console.log...
来源: Laya2.0_文档 发布时间: 20210715
...child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i = 0, len = this._shurikenParticleSystem.leng...
来源: Laya3.0_文档 发布时间: 20251010
...child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i = 0, len = this._shurikenParticleSystem.leng...
来源: Laya3.0_文档 发布时间: 20250104