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

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

1481. 资源加载清除问题 [ 69%]

...           }           private function onLoadCom(e:Texture):void         {             sp.graphics.drawTexture(e);             Laya.timer.once(1000, this, function():void             {    trace("clear")                 Loader.clearRes(ma...

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

1482. MovieClip的target和currentTarget属性为undefined? [ 69%]

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

1483. 经验分享:如何控制龙骨动画的播放索引! [ 69%]

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

1484. laya.display.cmd.DrawPathCmd_API3.0 [ 69%]

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

1485. laya.d3.core.particleShuriKen.module.TextureSheetAnimation [ 69%]

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

1486. 请问laya有没有类似翻页容器(pageView)的组件? [ 69%]

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

1487. Laya.loader Progress回调形同虚设 [ 69%]

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

1488. 角色模型的材质列表切换后,不播放动作了 [ 69%]

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

1489. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 69%]

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

1490. 加载-销毁Texture使用的图片资源 [ 69%]

...性能统计信息 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