大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滑块的位置:" + value); } } } new laya.UI_Slider();package { import laya.display.Stage; import laya.ui.HSlider; import laya.ui.VSlider; import laya.utils.Handler; import laya.webgl.WebGL; pu...
来源: Laya_示例 发布时间: 20260303
...s calculateBoundsintersection calculateBoundsintersection(bounds: Bounds): number Defined in laya/d3/math/Bounds.ts:204 Parameters bounds: Bounds Returns number -1为不相交 不为0的时候返回值为相交体积 clone clone(): any Defined in laya/d3/math/Bounds.ts:221 克隆。 Returns any 克...
来源: Laya3.0_api 发布时间: 20231115
... skinAni.player.play(); } for (var i: number = 0, n: number = spirit3D._childs.length; i < n; i++) this.addSkinComponent(spirit3D._childs[i]); } 附件 : --> cat.zip 2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180724
... // androidplat,创建二维码 createQrCode(url:string, width:number, height:number):string { return this._bridge.call("createQrCode", url, width, height); } // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content...
来源: Laya_社区 发布时间: 20200729
...All offAllCaller on once Constructors constructor new Gyroscope(singleton: number): Gyroscope Defined in laya/device/motion/Gyroscope.ts:36 实例化一个Gyroscope Parameters singleton: number Returns Gyroscope Accessors Static instance get instance(): Gyroscope Defined in laya/device/motion/Gyrosc...
来源: Laya3.0_api 发布时间: 20231115
...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...
来源: Laya2.0_示例 发布时间: 20260303
...r(this, this.onChange); Laya.stage.addChild(vs); } private onChange(value: Number): void { console.log("滑块的位置:" + value); } } } new laya.UI_Slider();package { import laya.display.Stage; import laya.ui.HSlider; import laya.ui.VSlider; import laya.utils.Handler; import laya.webgl.WebGL; pu...
来源: Laya2.0_示例 发布时间: 20260303
... //设置模糊的参数 var downSampleFactor:number = 2; var downSampleWidth:number = viewPort.width/downSampleFactor; var downSampleheigh:number = viewPort.height/downSampleFactor; var texSize:Laya.Vector4 =...
来源: Laya_社区 发布时间: 20210203
...)); } private onCheckBoxSkinLoaded(): void { var cb: CheckBox; for (var i: number = 0; i < this.COL_AMOUNT; ++i) { for (var j: number = 0; j < this.ROW_AMOUNT; ++j) { cb = this.createCheckBox(this.skins[i * this.ROW_AMOUNT + j]); cb.selected = true; cb.x = this.HORIZONTAL_SPACING * i + this.X_OFFSET...
来源: Laya_示例 发布时间: 20260303
...为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避免使用临时函数,造成...
来源: Laya3.0_文档 发布时间: 20251128