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

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

111. 关于多个小动画打包到一个图集动画的问题 [ 54%]

...10:59 //加载图集 Laya.loader.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var h...

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

112. 打包后报错 Unexpected token in JSON at position 266 [ 54%]

...ReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25)     at Handler.__proto.runWith (http://127.0.0.1:31158/game/code.js:725:41)     at Function.success (http://127.0.0.1:31158/game/code.js:21629:33)     at Object.success (http://127.0.0.1:31158/game/__ ... 213995)     at r (htt...

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

113. 微信小游戏设置网络动态加载无法显示 [ 54%]

...game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),null);  用Chrome调试可以显示,用Layaair调试报 [warn]Retry to load: res/atlas/bubbles.atlas [warn]Retry to load: res/atlas/game.atlas [warn]Retry to load: game/bgGame.png在微...

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

114. playSound和playMusic结束时候有异常抛出 [ 54%]

...der.load("res/music/Music_start.mp3",                      Laya.Handler.create(this, this.onLoadFinished));     }     onLoadFinished()     {         Laya.SoundManager.playMusic("res/music/Music_start.mp3", 1);     } } new GameMain();   ----------------------------------------...

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

115. 使用IDE发布小游戏时,启用了版本管理会导致使用 Laya.MiniAdpter.nativefiles 定义的本地资源文件无法加载 [ 54%]

...reateImage(url,thisLoader,true); }else{ MiniFileMgr.downOtherFiles(url,new Handler(MiniImage,MiniImage.onDownImgCallBack,[url,thisLoader]),url); } } else MiniImage.onCreateImage(url,thisLoader,true); }else { MiniImage.onCreateImage(url,thisLoader,!isTransformUrl); }修改为: if (!MiniFileMgr.getF...

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

116. Animation创建动画模板问题 [ 54%]

...ed (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/js/map/Node.js:113:30) at Handler.__proto.run (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:656:27) at TiledMap.__proto.initMap (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.tiledmap.js:307:27) at TiledMap.__proto.onTexture...

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

117. 示例 骨骼动画换装 加不上点击事件 [ 53%]

....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE ...

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

118. Laya.loader.load 加载场景报错 [ 53%]

Laya.loader.load 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent ...

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

119. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 53%]

.../data.head_img:头像的url路径 head_img.loadImage(data.head_img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.g...

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

120. this.scene.physicsSimulation.rayCastAll 报错 [ 53%]

...Scene Laya.Scene3D.load('LayaScene_OldHouse/Conventional/OldHouse.ls',Laya.Handler.create(this,this.onComplete)); 的onComplete方法进行赋值的吗?这里赋值的onComplete(scene) 应该是Scene3D 的吧? 努力 • 2019-05-24 21:22 大佬,我将代码上传了,您看一下,谢谢

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