大约有 2,727 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(86)
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createInteractiveTarget(); this.createLogger(); } private createInteractiveTarget(): void { var rect: Sprite = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.s...
来源: Laya2.0_示例 发布时间: 20241119
...source, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5...
来源: Laya2.0_文档 发布时间: 20210714
...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...
来源: Laya2.0_示例 发布时间: 20241119
...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...
来源: Laya2.0_示例 发布时间: 20241119
...ods MethodDefined By Physics()Physics enable(options:Object = null):void[static] 开启物理世界 options值参考如下: allowSleeping:true, gravity:10, customUpdate:false 自己控制物理更新时机,自己调用Physics.update Physics event(type:String, data:* = null):Boolean 派...
来源: Laya2.0_api 发布时间: 20190513
...有关掉,请问如何处理 //关闭效果 hideEffect(): void { Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn); } import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor(...
来源: Laya_社区 发布时间: 20190121
...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...
来源: Laya2.0_示例 发布时间: 20241119
...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...
来源: Laya2.0_示例 发布时间: 20241119
... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...
来源: Laya2.0_api 发布时间: 20190513
...Number 计算当前点和目标点(x,y)的距离。 Point normalize():void 标准化向量。 Point recover():void 回收到对象池,方便复用 Point reset():Point 重置 Point setTo(x:Number, y:Number):Point 将 Point 的成员设置为指定值。 Point toString():String返...
来源: Laya2.0_api 发布时间: 20190513