大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } private createSprite(): void { this.sp = new Sprite(); var w: number = 300, h: number = ...
来源: Laya_示例 发布时间: 20260303
...ad(this.compassImgPath, Handler.create(this, this.init)); } private init():void { // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // 画出其他UI this.drawUI(); // 创建显示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHAN...
来源: Laya_示例 发布时间: 20260303
... number y: number Returns Sprite handleKeys handleKeys(ev: KeyboardEvent): void Defined in laya/events/InputManager.ts:416 Parameters ev: KeyboardEvent Returns void handleMouse handleMouse(ev: MouseEvent | WheelEvent, type: number): void Defined in laya/events/InputManager.ts:175 Parameters ev: Mous...
来源: Laya3.0_api 发布时间: 20231115
...Texture2D。 Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private Texture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 Texture2D recreateResource():void[override] 重新创建资源,如果异步创建中被强制释放再...
来源: laya_api 发布时间: 20170929
...部空间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition,...
来源: Laya3.0_文档 发布时间: 20251010
...ad(this.compassImgPath, Handler.create(this, this.init)); } private init():void { // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // 画出其他UI this.drawUI(); // 创建显示角度的文本 this.createDegreesText(); Gyroscope.instance.on(Event.CHAN...
来源: Laya2.0_示例 发布时间: 20260303
..._SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) ...
来源: Laya_示例 发布时间: 20260303
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = nu...
来源: Laya2.0_api 发布时间: 20190513
...fined By TerrainMaterial()TerrainMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
...s, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.placeHSlider(); this.placeVSlider(); } private placeHSlider(): void { var hs: HSlider = new HSlider(); hs.skin = "res/ui/hslider.png"; hs.width = 300; hs.pos(50, 170); hs.min = 0; hs.max = 100; hs.value = 50; hs.t...
来源: Laya2.0_示例 发布时间: 20260303