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

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

1231. 输入设备-指南针 [ 60%]

...; var compassImg; var degreesText; var directionIndicator; var firstTime = true; (function() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this...

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

1232. laya.media.VideoTexture_API3.0 [ 60%]

...esource.lock Defined in laya/resource/Resource.ts:103 是否加锁,如果true为不能使用自动释放机制。 Optional name name: string Inherited from Resource.name Defined in laya/resource/Resource.ts:105 名称。 url url: string Inherited from Resource.url Defined in laya/resource/Resource...

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

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

...默认为未选中的false状态。一旦我们将selected属性设置为true。那按钮将会一直保持选中(持续按下)的状态,而不会再对其它状态产生变化(除非代码中进行状态改变)。 ### 2.4 是否切换按钮的显示状态(toggle)   toggle属性默...

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

1234. laya.media.Sound_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

1235. 本地双击html如何打开laya项目? [ 60%]

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

1236. laya.device.motion.Gyroscope_API3.0 [ 59%]

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

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

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

1238. 输入设备-指南针 [ 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_示例 发布时间: 20241002

1239. 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_示例 发布时间: 20241002

1240. 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_示例 发布时间: 20241002