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

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

241. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

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

242. 混合模式-Lighter [ 64%]

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

243. ScrollRect设置会引起其他的UI资源无法正在显示 [ 64%]

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

244. 混合模式-Lighter [ 64%]

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

245. List翻页效果 [ 63%]

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

246. 微信小游戏提审后,提示说代码侵权 [ 63%]

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

247. LayaBox进阶之UI管理类 [ 63%]

...得话,创建,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

248. List翻页效果怎么实现 [ 63%]

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

249. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 63%]

...} else {             var property = propertyOwner;             for (var i = 0, n = node.propertyCount; i < n; i++) { //-------------------------------begin------------------------------                 if (property instanceof Material) {                     switch (n...

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

250. 材质-BlinnPhong-高光贴图 [ 63%]

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