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

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

1441. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...ad(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onComplete)); } ​ } ​ onComplete(): void { //初始化rank排行榜 var rank = new BigR...

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

1442. laya.display.BitmapFont_API3.0 [ 45%]

...的资源。 Returns void Static loadFont loadFont(path: string, complete: Handler): void Defined in laya/display/BitmapFont.ts:33 通过指定位图字体文件路径,加载位图字体文件,加载完成后会自动解析。 Parameters path: string 位图字体文件的路径。 complete: Hand...

来源: Laya3.0_api 发布时间: 20231115

1443. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 45%]

...// 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事...

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

1444. LayaAir1.7.19.1 Beta预加载资源出问题 [ 45%]

...经这样试过,还是加载失败了。 Laya.loader.create(urls, Laya.Handler.create(this, onComplete, [urls]), null, Laya.Scene); 跟Sprite3D有区别吗 188*****949 • 2018-07-26 11:31 这个问题还挺难搞的,因为只在我打包到远端加载的时候才会出问题,本地加载是o...

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

1445. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 45%]

...fConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报错 Main.js:61 Uncaught Reference...

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

1446. Uncaught TypeError: Cannot read property 'props' of undefined [ 45%]

...; //添加3D场景 Laya.Scene3D.load("LayaScene_Laya3D01/Laya3D01.ls",Laya.Handler.create(null,function(scene){ Laya.stage.addChild(scene); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //加载到场景 scene.addChild(camera); //移动摄像...

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

1447. List 组件做的手风琴Demo [ 45%]

...ld(list);         list.array =this.arr;         list.renderHandler =new Laya.Handler(this,this.updateItem);         this.listArr.push(list); //------------------------------------------------------------------------------ updateItem(cell:Item,index:number){          ...

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

1448. 用unity插件导出lh格式文件,再代码中加载使用的问题 [ 45%]

...r scene : Scene3D;             Scene3D.load("res/laya-test.ls",Handler.create(null,function(sp:Scene3D):void{                 scene = Laya.stage.addChild(sp) as Scene3D;             }));   找到对应的示例代码了,但是编译报错。。。。用的...

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

1449. List滚动条问题 [ 45%]

...eMarketDlg.width-312*3-10*2)/2, 120); list.selectEnable = true; list.renderHandler = new Laya.Handler(this, UpdateMarketItem); Laya.stage.addChild(list); list.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10...

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

1450. 颜色滤镜 差值变化 [ 45%]

....Tween.to(ColorTool.getInstance(), { persent: 1 }, time * 1000, null, Laya.Handler.create(this, this.setPersent, [0])); }  /** * 颜色改变函数 * @param color 目标色值 * @param lastColor 当前色值 * @param persent 差值 */ public colorFilter(color: number, lastColor: number, persent: nu...

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