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

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

1491. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 41%]

...用如下代码加载prefab资源,             Laya.Sprite3D.load("res/prefabs/Conventional/SampleScene.lh", Laya.Handler.create(null, function(sp)             {                 var layaMonkey2  = scene.addChild(sp);                 layaMonkey2.transform.localScale = n...

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

1492. 安卓上的百度小游戏,playMusic会出现多个背景音乐 [ 41%]

...文件的话,会有资源load不上来,报错:[error]Failed to load: res/atlas/test.atlas H5_Gamker • 2020-06-23 19:55 是不是换了适配库之后外面有些调用会对不上 157*****593 • 2020-06-23 20:16 清理一下缓存 H5_Gamker • 2020-06-24 09:33 换了新的库之后,之...

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

1493. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 41%]

...为天空盒加载贴图文件 skyBox.textureCube = Laya.TextureCube.load("res/skyBox1/skyCube.ltc"); 但发布到微信小游戏时,启动报错,请问是什么问题: gameThirdScriptError Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signat...

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

1494. Skeleton骨骼动画内存泄漏 [ 41%]

...; this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.keyCode == 98) { if(this.te != null){ this.te.destroy(); this.te = null; this.sk.destroy(); this.sk = null; } } } private teComplete():void{ this.sk = this.te.buildArmat...

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

1495. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 41%]

提示“AtlasResourceManager:Dispose the inner Atlas。” AtlasResourceManager:Dispose the inner Atlas。 laya.webgl.js:374 >>>>altas garbageCollection =1 laya.webgl.js:372 AtlasResourceManager:Dispose the inner Atlas。 laya.webgl.js:374 >>>>altas garbageCollection =1 lay...

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

1496. LayaAir示例项目源码编译运行指南(TypeScript-LayaAir基础篇(TS)-快速上手) [ 41%]

...,查看线上示例。 示例的资源文件位于`源码根目录/bin/res/`,如下图所示: ![5](img/5.png) ### 四、如何运行查看LayaAir引擎示例 为了验证我们的编译与项目环境没有问题,我们先把默认的示例给编译运行起来看一看。 由于引擎源码...

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

1497. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 41%]

...当的时候调用destory销毁地图         tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler));     } /**      * 地图加载完成的回调      */     function completeHandler()     {          //设置缩放中...

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

1498. Spine动画使用(TypeScript-LayaAir基础篇(TS)-动画基础) [ 41%]

...n); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示 ![动图8](img\8.gif) (动图8)

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

1499. 发现惊天大bug给官方报备一下 [ 41%]

...Fred 赞同来自: 您好,按您说的将basePath设置成目录,在getRes内进行url的format后结果如下图:   2021-09-16 0 0 分享 微博 QZONE 微信 shiyang 赞同来自: 在微信上面,直接导入release/wxgame BugDemo1.rar 2021-09-16 0 0 分享 微博 QZONE 微信 shiyang 赞...

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

1500. Spine动画使用(JavaScript-LayaAir基础篇(JS)-动画基础) [ 41%]

...n); skeleton.pos(600,700); //通过加载直接创建动画 skeleton.load("res/spine/spineboy/spineboy.sk"); ``` 运行效果如动图8所示 ![动图8](img/8.gif) (动图8)

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