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

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

11. 在加载包含Animation的prefab后,动画没有显示 [ 91%]

...动画放进预制体? Laya.loader.load("prefab/gk2v1.json",Laya.Handler.create(this,function(pref:Laya.Prefab){ var gkpref:Laya.Prefab = new Laya.Prefab(); gkpref.json = pref; var OBJ = Laya.Pool.getItemByCreateFun("gk2v1",gkpref.create,gkpref); this.Scene.addChild(OBJ); })); 附件 : --> ZMW.zip...

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

12. 载入U3D导出的粒子特效报错 [ 91%]

...3D.__proto._parseCustomProps (laya.d3.js:40855)     at Function.Utils3D._createNodeByJson (laya.d3.js:17945)     at Function.Utils3D._createNodeByJson (laya.d3.js:17954)     at Sprite3D.__proto.onAsynLoaded (laya.d3.js:30800)     at ResInfo.onLoaded (laya.core.js:13189)     at EventHandler...

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

13. 照相机-3D空间转2D空间 [ 90%]

...ar directionLight = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/Lay...

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

14. list的Handler.create的点击事件第二次点击不生效 [ 90%]

list的Handler.create的点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(i...

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

15. 3D:Mesh如何预加载? [ 90%]

...能正常使用,没有Mesh的类型可以指定。 是要用Laya.loader.create才行么? Laya.loader.create(urls, Handler.create(this, this.onAssetLoaded), Handler.create(this, this.onLoading, null, false), laya.d3.resource.models.Mesh );         2016-12-17 添加评论 免费帖 --> 分享 ...

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

16. Laya.Handler.create 加载图片回调参数问题 [ 90%]

Laya.Handler.create 加载图片回调参数问题 我想在调用loadImage加载图片完成之后把某个参数带到Handler里,但是按网上的说法我一直是失败, 示例代码: //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(Laya.Browser.width, Laya.Brows...

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

17. Oppo加载.ls资源错误 [ 90%]

Oppo加载.ls资源错误 Laya.loader.create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { consol...

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

18. Sprite3D-Sprite3D变换 [ 90%]

...ra.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/Laya...

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

19. 物理引擎-牛顿摆 [ 90%]

...stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render = LayaRender.create( { engine: engine, container: gameWorld, width: stageWidth, height: stageHeight, options: { wireframes: false } }); LayaRender.run(r...

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

20. 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 [ 89%]

...TypeError: Cannot read property 'width' of null     at Function.Texture._create (laya.core.js:15946)     at Texture.__proto._onLoaded (laya.core.js:15750)     at EventHandler.__proto.runWith (laya.core.js:1410)     at ResInfo.__proto.event (laya.core.js:1166)     at LoaderManager.__proto._...

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