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

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

1271. laya.device.motion.Gyroscope_API3.0 [ 60%]

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

1272. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

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

1273. 输入设备-指南针 [ 59%]

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

1274. UI-CheckBox [ 59%]

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

1275. laya.events.Event_API3.0 [ 59%]

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

1276. UI-CheckBox [ 59%]

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

1277. laya.components.AnimatorControllerLayer2D_API3.0 [ 59%]

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

1278. 淘宝创意互动分包指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 59%]

... `mini.project.json` 文件中声明如下: ``` "enableEnhancedBuild": true, // 必须 "include":["packageA/**","packageB/**"] //必须 ``` 开发者需要自己去加载分包和资源 ``` my.loadSubPackage({ name: 'packageA', success: (res) => { this.setData({ subpackageReady:true }) console.log...

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

1279. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i = 0, len = this._shurikenParticleSystem.leng...

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

1280. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 59%]

...child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i = 0, len = this._shurikenParticleSystem.leng...

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