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

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

301. List表单renderHandler问题 [ 74%]

List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

302. tween有这个一个bug [ 74%]

...画 Laya.Tween.to(point,{x:point.x,y:point.y,alpha:1,update:Laya.Handler.create(point,function(){ this.visible = true; })},800,Laya.Ease.backOut,null,i*400); timeline在一开始还在正常执行, 当有一半左右的ui元素进入到场景时, timeline循环卡住不动了, 等所有ui动画执...

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

303. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 74%]

...er.ATLAS}].concat(loadArr),     // 加载完成回调     Laya.Handler.create(null,function(){         var logintest = new loginTestView().init();         Laya.stage.addChild(logintest);     }),     // 加载进度回调 {???为什么只调用了一次 || 进度不是持续调...

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

304. 如何往TiledMap格子内追加精灵 [ 73%]

...ap.getLayerByIndex(2); mallLayer = tiledMap.getLayerByName("animation"); //Create Bear Start for(var sCnt = 0; sCnt < 20; sCnt++){ createSprite(sCnt) } //Create Bear End } function createSprite(no){ var flower = new Sprite(); flower.loadImage(texture1); flower.pos((0 + no) * 99.5, 73); flower.mou...

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

305. 获取位置信息 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.log("click"); } // 成功获取位置后触发 onSuccess(info: Laya.GeolocationInfo): void { console.log('经纬度: (' + info.longitude + '°, ...

来源: Laya3.0_文档 发布时间: 20251010

306. 加载unity导出的.lh文件报错! [ 73%]

...res/room.lh");//方法二:预加载,创建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room...

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

307. 加载unity导出场景失败 [ 73%]

...WDT/bin/main/SMain.ls) extension with: ls.     at LoaderManager.__proto._create (file:///E:/LayaAir/ZJKZWDT/bin/libs/laya.core.js:12981:11)     at LoaderManager.__proto.create (file:///E:/LayaAir/ZJKZWDT/bin/libs/laya.core.js:12969:21)     at Function.Scene.load (file:///E:/LayaAir/ZJKZWDT/bin...

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

308. Sprite-切换纹理 [ 73%]

....stage.bgColor = "#232628"; Laya.loader.load([texture1, texture2], Handler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ap...

来源: Laya_示例 发布时间: 20251209

309. getRes加载场景报错 [ 73%]

...场景报错 Laya.loader.load("LayaScene_04_laya/04_laya.ls",Laya.Handler.create(this,this.on3DComplete)); 在load3D资源后分别用两种方法实例化场景报错   //1.实例化场景 that.scene = Laya.loader.getRes("LayaScene_04_laya/04_laya.ls") as Laya.Scene3D; Laya.stage.addChild(that.sce...

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

310. 如何加载.lh文件 [ 73%]

...载。或者传入地址数组。即可加载多个模型   Laya.loader.create([ {url:"资源目录/模型名字.lh"}, {url:"同上.lh"},  {url:"同上"},  {url:"同上"}[code]],Handler.create(this,onLoaded)); 2018-05-29 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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