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

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

461. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 49%]

...ayabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){ var url = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取...

来源: Laya2.0_文档 发布时间: 20210714

462. list里的tweenTo(index)方法 为什么按下鼠标快速向某方向滑动的情况下想要显示的index单元格位置会有偏移,怎么控制单元格的位置 [ 49%]

...单元格的位置 this._list.tweenTo(this._list.page, 500, isFresh ? Laya.Handler.create(this, this.refresh) : null);核心就这句,this._list.page在滑动的距离达到某个值时,就会调,翻到下一页,左右翻页按钮去调没问题,位置都是正确的,只有在按...

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

463. 图集制作与使详解(JavaScript-IDE篇(JS)-使IDE创作) [ 49%]

...atlas方式图集使示例 Laya.loader.load("./res/test/c1.atlas", Laya.Handler.create(this, onLoaded)); ```   `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应广泛,不仅仅于图集,所以为了识别是否为图集配置信息,在加载`.json`文...

来源: Laya2.0_文档 发布时间: 20210715

464. 图集制作与使详解(TypeScript-IDE篇(TS)-使IDE创作) [ 49%]

...as方式图集使示例 Laya.loader.load("./res/atlas/test.atlas", Laya.Handler.create(this, this.onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应广泛,不仅仅于图集,所以为了识别是否为图集配置信息,在加载`.json`文件...

来源: Laya2.0_文档 发布时间: 20210714

465. Spritegraphics绘制图形后,mouse_over触发scale显示有问题 [ 49%]

...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...

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

466. 模拟石头下落过程不明抖动 [ 49%]

...all.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:numbe...

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

467. 图集制作与使详解(ActionScript-IDE篇(AS3)-使IDE创作) [ 49%]

...//atlas方式图集使示例 Laya.loader.load("./res/atlas/test.atlas", Handler.create(this, onLoaded)); ``` `.json`是一种兼容第三方的图集配置方式,由于`.json`文件应广泛,不仅仅于图集,所以为了识别是否为图集配置信息,在加载`.json`文件的...

来源: Laya2.0_文档 发布时间: 20210714

468. [0]laya-zip游戏加载提速库(Laya3.0版本适配更新) [ 49%]

...p.ZIP, constructParams:["Folder1/Player1.lh","Folder2/Player2.lh"]}], Laya.Handler.create(this, () => { let player1 = Laya.loader.getRes("res/3d/Player/Folder1/Player1.lh").clone(); let player2 = Laya.loader.getRes("res/3d/Player/Folder2/Player2.lh").clone(); }));[/code]Laya 3.x版本 暂时未...

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

469. 微信小游戏加载资源问题 [ 49%]

...cheFile || isSaveFile) { MiniFileMgr.copyFile(filePath, readyUrl, new Laya.Handler(MiniFileMgr,MiniFileMgr.copyFileCallback,[callBack,data]), encoding, isAutoClear); } else callBack != null && callBack.runWith([0, data]); } else callBack != null && callBack.runWith([0, data]); }, fai...

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

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

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