大约有 2,033 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...的动画在pc模拟器播放OK在手机端不显示 loaded : function(){ this.loader = Laya.loader; this.loader.retryNum = 0;//无加载重试 this.urls = ['imgdebris/imgdebris.atlas','imgdebris/p1_slj.png',]; // this.loader.load(this.urls[0], Laya.Handler.create(this, this.onAssetloaded)); this.lo...
来源: Laya_社区 发布时间: 20190117
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.createText(); this.start(); } start() { const Sprite = Laya.Sprite; for (var i = 0; i w) { stars[i].x = stars[i].x - w; } else if (stars[i].x h) { stars[i].y = stars[i].y - h; } else if (stars[i].y = []; private w:number...
来源: Laya2.0_示例 发布时间: 20251130
...ComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index],); } } 如何写成泛型方法呢???编译不通过 GetComponetInChild<T>(node:laya.display.Node):T { // var s:=typeof(Laya.Animator); for (var index = 0; index < nod...
来源: Laya_社区 发布时间: 20180531
...ial; Laya.loader.create("cj\cj-default001.lm",Laya.Handler.create(this,this.onCreateComplete)); function onCreateComplete() { var mesh = Laya.loader.getRes("cj\cj-default001.lm"); var meshSprite3D = new Laya.MeshSprite3D(mesh); this.scene.addChild(meshSprite3D); } //mode...
来源: Laya_社区 发布时间: 20180427
...大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dialogManager; this.scTipsPg.manager.maskLayer=sprite1; this.scTipsPg.popupCenter=false; this.scTipsPg.top=60; this.scTipsPg.right=-510;...
来源: Laya_社区 发布时间: 20191031
...可做的操作 list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); // 滚动条的橡皮筋操作:回弹时间及弹性距离 list.scrollBar.elasticBackTime = 200; list.scrollBar.elasticDistance = 5; Laya.stage.addChild(list); // 设置数据项为对应图片的路...
来源: Laya_社区 发布时间: 20180410
...大礼包通用素材/通用素材/背景黑色蒙版.png",0,0,1600,1080); this.scTipsPg= new ScTpisUI(); console.log(this.scTipsPg.manager); this.scTipsPg.manager=dialogManager; this.scTipsPg.manager.maskLayer=sprite1; this.scTipsPg.popupCenter=false; this.scTipsPg.top=60; this.scTipsPg.right=-510;...
来源: Laya_社区 发布时间: 20191031
...了repeat=true,改变uv时图片没有平铺 private onFrame():void{ if(this.testScrollImg){ if(this.testScrollImg._bitmap && this.testScrollImg._bitmap.source){ this.testScrollImg._bitmap.source.repeat = true; var ss:any = this.testScrollImg._bitmap.source.uv; var uv:any[] = []; uv[0] = s...
来源: Laya_社区 发布时间: 20180321
...owser.window.conch.showAssistantTouch(false); window.requestAnimationFrame(this.render); console.log("mobile device"); if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox...
来源: Laya_社区 发布时间: 20180525
...列。 */ __proto.getComponentsByType=function(type,components){ var index=this._componentsMap.indexOf(type); if (index===-1) components.length=0; //这里应该返回了!!!!!!!!!! var typeComponents=this._typeComponentsIndices[index]; var count=typeComponents.length; components.length=count; for (v...
来源: Laya_社区 发布时间: 20170630