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

大约有 237 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

61. 载入场景报错 [ 81%]

...ra 和light,所有代码如下 import Handler=laya.utils.Handler; import Loader=laya.net.Loader; // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; Laya.stage.alignH = Laya.Stag...

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

62. 请问2.0中js怎么加天空盒子或穹顶,官网例子运行报错。 [ 80%]

...undefined at Function.Laya3D.formatRelativePath (libs/laya.d3.js:14313) at Loader.Laya3D._onTextureCubeLtcLoaded (libs/laya.d3.js:14656) at EventHandler.__proto.runWith (libs/laya.core.js:1400) at Loader.__proto.event (libs/laya.core.js:1156) at Loader.__proto.complete (libs/laya.core.js:16348) at L...

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

63. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 80%]

...:TextField;       } }   import flash.events.Event; import flash.net.URLLoader; import flash.net.URLRequest; import flash.net.URLVariables;     class LoadDebugConfig {     public function LoadDebugConfig(execute:Function)     {         this.execute = execute;           var loader:U...

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

64. Sprite3D-Sprite3D变换 [ 80%]

...); camera.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/LayaMonk...

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

65. 连续读取多个本地json文件 [ 80%]

...取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读...

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

66. TS分离模式设置未打包图片输出目录导出资源无法加载未打包资源 [ 80%]

...出资源无法加载未打包资源 如图设置 修改加载代码 Laya.loader.load([     { url: "res/atlas/comp.atlas", type: Loader.ATLAS },     { url: "unpack/comp/image.png", type: Loader.IMAGE },     { url: "test/TestPage.json", type: Loader.JSON }, ], Handler.create(this, this.on...

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

67. unity里导出的骨骼动画无法读取 [ 79%]

...的插件的参数,你看下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();  ...

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

68. 资源加载,提示不识别路径 [ 79%]

资源加载,提示不识别路径 //加载3D资源 Laya.loader.create([{url:"LayaScene_Demo/Demo.ls","type":Laya.Scene}, {url:"LayaScene_Scene/Scene.ls","type":Laya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 messag...

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

69. sk文件加载 [ 79%]

sk文件加载 package {     import laya.net.Loader;     import laya.net.ResourceVersion;     import laya.utils.Handler;     import view.TestView;     import laya.webgl.WebGL;     import laya.net.URL;     import laya.ani.bone.Skeleton;          public class LayaU...

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

70. 淘宝小游戏 · LayaAir3.0文档 · LAYABOX [ 79%]

...在代码中加载分包,是可以加载到分包内的资源的: Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { // ...... }); Laya.loader.load("sub2/Sphere.lh").then((res: Laya.PrefabImpl) => { // ...... }); 4.2 特殊情况下多级目录的分包 有时开发者的分...

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