大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component clearTimer(caller:*, me...
来源: laya_api 发布时间: 20170929
...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 = 200, h: number = ...
来源: Laya2.0_示例 发布时间: 20260303
...s:9 Accessors endAngle get endAngle(): number set endAngle(value: number): void Defined in laya/display/cmd/DrawPieCmd.ts:89 结束角度。 Returns number Defined in laya/display/cmd/DrawPieCmd.ts:93 结束角度。 Parameters value: number Returns void startAngle get startAngle(): number set start...
来源: Laya3.0_api 发布时间: 20231115
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画...
来源: laya_api 发布时间: 20170929
...例。 Viewport project(source:Vector3, matrix:Matrix4x4, out:Vector3):void 变换一个三维向量。 Viewport unprojectFromMat(source:Vector3, matrix:Matrix4x4, out:Vector3):void 反变换一个三维向量。 Viewport unprojectFromWVP(source:Vector3, projection:Matrix4x4, view:Matrix4x4...
来源: laya_api 发布时间: 20170929
...&group=Resource&name=GarbageCollection)) ```typescript function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景...
来源: Laya2.0_文档 发布时间: 20210715
...Pic(); this.showConsoleText(); this.startShake(); } private showShakePic():void { var shakePic:Sprite = new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } private showConsoleText():void { this.console = new Text(); Laya.stage.addChild(this.console); this....
来源: Laya2.0_示例 发布时间: 20260303
...ent.ERROR, this, this.onError); } private onAssetLoaded(texture: Texture): void { // 使用texture console.log("加载结束"); } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: String): void { console.log("加载...
来源: Laya_示例 发布时间: 20260303
...tructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); //激活资源版本控制 ...
来源: Laya_社区 发布时间: 20180529
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createSprtie(); this.drawTrack(); } private createSprtie(): void { const w: number = 50; const h: number = 30; this.button = new Sprite(); this.button.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.button.pivot(w ...
来源: Laya2.0_示例 发布时间: 20260303