大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0066 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(87)
...; Laya.stage.bgColor = "#232628"; this.createApe(); } private createApe(): void { this.ape = new Sprite(); this.ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; Laya.timer.frameL...
来源: Laya_示例 发布时间: 20241120
..._AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Handler.create(this, function(texture:Texture2D):void { ma...
来源: Laya2.0_文档 发布时间: 20210714
...all"; Laya.stage.bgColor = "#232628"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler....
来源: Laya_示例 发布时间: 20241120
...nds Laya.AnimatorStateScript { animator:Laya.Animator; onStateEnter(): void { } onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } } onStateUpdate(): void { } } 2018-11-20 0 0 分享 微博 QZONE 微信 haseef520s 赞同来自: 嗯嗯 谢...
来源: Laya_社区 发布时间: 20181109
...擎 skin 大于512 的释放问题 setData(type: number, fight: number): void { this.imgItem = new Image(); this.imgItem.skin = 'forging/000' + (type + 1) + '.png'; this.imgItem.y = type * 231; this.name = type + ""; this.showFight(fight); } showFight(num: number): void { if (this._sprFight) this._s...
来源: Laya_社区 发布时间: 20170916
...oxPoint closestPointBoxPoint(box: BoundBox, point: Vector3, out: Vector3): void Defined in laya/d3/math/CollisionUtils.ts:1219 空间中包围盒与一点的最近点 Parameters box: BoundBox 包围盒 point: Vector3 点 out: Vector3 最近点 Returns void Static closestPointPlanePoint closestPointP...
来源: Laya3.0_api 发布时间: 20231115
...ya.stage.bgColor = "#232628"; this.demonstrate(); } private demonstrate(): void { for (var i: number = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } private onCallLater(): void { console.log("onCallLater triggered"); var text: Text = new Text(); text.font = "SimHei"; text.fontS...
来源: Laya2.0_示例 发布时间: 20241120
...:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); socket.conne...
来源: Laya_社区 发布时间: 20170724
...ndler.create(this,this.complete)); 3.//加载完成回调处理 complete():void{} 2018-05-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 请问LayaAir中如何使图片以圆形的方式显示? 加载到舞台...
来源: Laya_社区 发布时间: 20170220
...odDefined By TrailMaterial()TrailMaterial _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