大约有 827 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)
Laya_社区(668) Laya2.0_文档(61) Laya_示例(34) Laya3.0_文档(30) Laya2.0_示例(30) Laya3.0_api(3) Laya2.0_api(1)
...onEnable(): void { // 给List对象赋值 var data: Array<any> = []; for (var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂...
来源: Laya3.0_文档 发布时间: 20251010
...Height * scaleFactor) / 2; } function createAnimation() { var frames = []; for (var i = 1; i > 16); result.push(color >> 8 & 0xFF); result.push(color & 0xFF); return result; } function onTweenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRec...
来源: Laya_示例 发布时间: 20251209
....PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(p); _path.addChild(p); } //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-1)*PATH_LEN,58); btn_star...
来源: Laya_社区 发布时间: 20171113
...- phoenixHeight * scaleFactor) / 2; } createAnimation() { let frames = []; for (let i = 1; i > 16); result.push(color >> 8 & 0xFF); result.push(color & 0xFF); return result; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoe...
来源: Laya2.0_示例 发布时间: 20251209
....onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image...
来源: Laya_社区 发布时间: 20171202
...e('path'); var filterFils = ["Base64", "ThemeAdapter","AssetAdapter", "Platform", "wxgamesdk"];//忽略文件 var filterDirs = ["xxxx"];//忽略目录 var traceName = "xxxx";//添加的干扰代码 var funString = '_xxxx_fun(){ console.log("';//添加的方法体 var root_Url = "D:/code/project/src"...
来源: Laya_社区 发布时间: 20190613
...得话,创建,push到数组中 private 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] publi...
来源: Laya_社区 发布时间: 20190222
...nMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image...
来源: Laya_社区 发布时间: 20181112
...} else { var property = propertyOwner; for (var i = 0, n = node.propertyCount; i < n; i++) { //-------------------------------begin------------------------------ if (property instanceof Material) { switch (n...
来源: Laya_社区 发布时间: 20240517
...camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.DirectionLight()); dir...
来源: Laya_示例 发布时间: 20251209