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

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

711. 鼠标交互-双指缩放(多点触控) [ 86%]

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

712. 输入设备-指南针 [ 86%]

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

713. laya.events.InputManager_API3.0 [ 86%]

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

714. laya.d3.resource.Texture2D [ 86%]

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

715. 3D变换 · LayaAir3.4 · 引擎文档 · LAYABOX [ 86%]

...部空间。 */ 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

716. 输入设备-指南针 [ 86%]

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

717. 计时器-延迟执行 [ 86%]

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

718. laya.ui.Label [ 86%]

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

719. laya.d3.core.material.TerrainMaterial [ 86%]

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

720. UI-Slider [ 86%]

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