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

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

681. laya.ui.ProgressBar [ 87%]

...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 Component clearTimer(caller:*, me...

来源: laya_api 发布时间: 20170929

682. 鼠标交互-双指旋转(多点触控) [ 87%]

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

683. laya.display.cmd.DrawPieCmd_API3.0 [ 87%]

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

684. laya.display.AnimationPlayerBase [ 87%]

...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画...

来源: laya_api 发布时间: 20170929

685. laya.d3.math.Viewport [ 87%]

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

686. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 87%]

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

687. 输入设备-摇一摇 [ 87%]

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

688. 加载-错误处理和进度 [ 87%]

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

689. 微信小游戏利用开放域好友关系链做排行榜 [ 87%]

...tructor(){         this.init();     }      private init():void{         //初始化微信小游戏         Laya.MiniAdpter.init(true);         //程序入口         Laya.init(600, 400,Laya.WebGL);          //激活资源版本控制     ...

来源: Laya_社区 发布时间: 20180529

690. 鼠标交互-滑动 [ 87%]

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