大约有 375 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0044 秒)
...击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; this.txt.text = "点击我切换适配模式" + "(" + modes[index] + ")"; } onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY);...
来源: Laya2.0_示例 发布时间: 20241125
...uv_info.zw - vec2(0.5,0.5))*256.0;\ float radius = length(pos.xy);\ float angle = -degrees(atan(pos.x, pos.y)) + 180.0;\ float fa = radians(angle - progress * 360.0) * radius + 1.0;\ fa = clamp(fa, 0.0, 1...
来源: Laya_社区 发布时间: 20170606
...击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; txt.text = "点击我切换适配模式" + "(" + modes[index] + ")"; } function onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mous...
来源: Laya_示例 发布时间: 20241125
...码 var letterList = ["A","B","C","D"]; for (var z = 0; z < letterList.length; z++){ var letter = new Sprite(); letter.loadImage("../imgs/linkup/" + letterList[z] + ".png", (bg.width / letterList.length) * z, 0, bg.width / letterList.length, bg.height / 2); Laya.stage.addChild(letter); letter.on(...
来源: Laya_社区 发布时间: 20180810
...vate getView(clazz: any):Laya.Node{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.uiList[i]; if(uiData.clazz == clazz){ return uiData.view; } } }[/i]根据clazz名字获取本地缓存的场景类 下面是关闭场景,[i] public closeWindow(clazz: any): void { let ...
来源: Laya_社区 发布时间: 20190222
....ALPHA; context._submits[context._submits._length++] = tempSubmit; } else if (Render.isConchApp&&mTexture) { transform || (tra...
来源: Laya_社区 发布时间: 20190628
...oginView@atlas0.png",type:laya.net.Loader.IMAGE} ]; var loadcount=resArray.length; function onLoaded() { console.log("进度条"); Laya.stage.addChild(fairygui.GRoot.inst.displayObject); fairygui.UIPackage.addPackage("res/Public"); var ProgressBarPage=fairygui.UIPackage.createObject("Public","Progre...
来源: Laya_社区 发布时间: 20171207
....display.Node):Laya.Animator { for (var index = 0; index < node._childs.length; index++) { var element:Laya.Animator = node._childs[index].getComponentByType(Laya.Animator); if (element!=null) { return element; }else this.GetComponetInChild(node._childs[index],); } } 如何写成泛型方法...
来源: Laya_社区 发布时间: 20180531
...destroy var list=laya.display.Scene.unDestroyedScenes; for (var i=0,n=list.length;i < n;i++){//这里缓存了长度,但是在 __proto.destroy=function(destroyChild){ (destroyChild===void 0)&& (destroyChild=true); this._idMap=null; _super.prototype.destroy.call(this,destroyChild); var l...
来源: Laya_社区 发布时间: 20181128
...} private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: R...
来源: Laya2.0_示例 发布时间: 20241125