大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
... } private function onLoadCom(e:Texture):void { sp.graphics.drawTexture(e); Laya.timer.once(1000, this, function():void { trace("clear") Loader.clearRes(ma...
来源: Laya_社区 发布时间: 20161230
...target和currentTarget属性为undefined? private function showNowPic():void{ for each(var ul:String in pics){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target...
来源: Laya_社区 发布时间: 20161221
...actory.loadAni('NewDragon/NewDragon.sk'); } private function omTemLoaded():void { mArmature=mFactory.buildArmature(0); Laya.stage.addChild(mArmature); Laya.stage.on(Event.CLICK,this,onClick); mArmature.play(0,false);//设置初始位置 mArmature.index=this.index; mArmature.pos(500,500) } private fu...
来源: Laya_社区 发布时间: 20170509
...Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawPathCmd.ts:46 回收到对象池 Returns void Globals "laya/display/cmd/DrawPathCmd" DrawPathCmd brush paths pen x y ID getBoundPoints recover _tempPoints Legend Object literal Variable Fu...
来源: Laya3.0_api 发布时间: 20231115
...tion clone():* 克隆。 TextureSheetAnimation cloneTo(destObject:*):void 克隆。 TextureSheetAnimationProperty Detailcyclespropertypublic var cycles:int循环次数。enableproperty public var enable:Boolean是否启用enableUVChannelsproperty public var enableUVChannels:intUV通道类型...
来源: Laya2.0_api 发布时间: 20190513
...rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.t...
来源: Laya_社区 发布时间: 20170215
Laya.loader Progress回调形同虚设 private function beginLoad():void { //加载引擎需要的资源 Laya.loader.load([ "res/1.png", "res/2.png", "res/3.png", "res/4.png", "res/5.png", "res/6.png", "res/7.png" ], Handler.create(this, onLoaded),Handler.create(this, onProgress)); //Laya.loader.lo...
来源: Laya_社区 发布时间: 20180428
..._Normal;\n" + "varying vec3 v_Normal;\n" + "varying vec2 v_Texcoord;\n" + "void main(){\n" + "gl_Position = u_MvpMatrix * a_Position;\n" + "mat3 worldMat=mat3(u_WorldMat);\n" + "v_Texcoord=a_Texcoord;\n" + "v_Normal=worldMat*a_Normal;}"; var ps = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\...
来源: Laya_社区 发布时间: 20170815
... this.list.scrollBar.elasticDistance = 200; } open(): void { for(let i = 0; i< 50; i++) { this.test.push(i); } this.list.array = this.test; } onItemRender(item: Item_List, index: number): void...
来源: Laya_社区 发布时间: 20170614
...性能统计信息 Stat.show(); } /** * 初始化场景 */ private init():void { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spBg); //创建动画 this.aniFly = new Animation(); this.aniFly.loadAtlas(this.PathFly); this.aniFly.play(); this.aniFly.pos(250, 100);...
来源: Laya2.0_示例 发布时间: 20260303