大约有 3,603 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0337 秒)
Laya_社区(2675) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya3.0_文档(97) Laya_示例(83) Laya2.0_示例(45)
...默认为未选中的false状态。一旦我们将selected属性设置为true。那按钮将会一直保持选中(持续按下)的状态,而不会再对其它状态产生变化(除非代码中进行状态改变)。 ### 2.4 是否切换按钮的显示状态(toggle) toggle属性默...
来源: Laya2.0_文档 发布时间: 20210714
...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
...addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity( i); return true ; } return false ; } 安装完之后,我们只需要根据apk的包名去访问apk,代码如下: Intent intent = new Intent(Intent. ACTION_MAIN); intent.addCategory(Intent. CATEGORY_LAUNCHER); ComponentName cn = ne...
来源: Laya_社区 发布时间: 20160104
...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_示例 发布时间: 20251209
... = 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_示例 发布时间: 20251209
...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_示例 发布时间: 20251209
...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