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

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

281. [LayaAir3]我修改了这个启动场景,从Loading——>register之后,就导致报这个错误,即使后面修改回去,也不行。怎么解决? [ 67%]

...isterRT.ts" for import "main"  [Ln 96, Col 49] at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2编译失败 at /D:/Laya3IDE/LayaAirIDE/resources/app.asar/game.js:2 附件 : --> 2025-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

282. [LayaAir3]list.selectHandler [ 67%]

...e.trim()){ case "0":{ if(this.btn.selected){ this.btn.skin="resources/ui/目录2.png"; let modelCtrl:ModelCtrl =Laya.stage.getChildByName("Scene3D").getComponent(ModelCtrl) as ModelCtrl; if(modelCtrl!=null){ this.uiCtrl.InitLeftUI(modelCtrl.data.result); } if(this.uiCtr...

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

283. laya.d3.core.material.SkyBoxMaterial [ 67%]

...lasspublic class SkyBoxMaterialInheritanceSkyBoxMaterial BaseMaterial laya.resource.Resource SkyBoxMaterial 类用于实现SkyBoxMaterial材质。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 ...

来源: Laya2.0_api 发布时间: 20190513

284. drawToTexture 绘制函数不工作呢 [ 67%]

...aya.loader.getRes("res/atlas/test.png");         //let texcpy:laya.resource.Texture = Laya.loader.getRes("res/atlas/test.png")         let texcpy:laya.resource.Texture = img.drawToTexture(100,100,0,0);         let copyimg:Laya.Sprite = new Laya.Sprite();         copyi...

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

285. macOS系统运行layaair-cmd resourceVersion报错 [ 67%]

macOS系统运行layaair-cmd resourceVersion报错 环境:macOS 10.13.4 版本:​layaair-cmd resourceVersion 2.2.5   运行layaair-cmd resourceVersion -i ./src/res -o ./src -n 1000 报错,错误如下:   internal/child_process.js:323     throw errnoException(err, 'spawn');     ^   ...

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

286. Spine骨骼动画 · LayaAir3文档 · LAYABOX [ 66%]

...执行一次 onAwake(): void { //加载Spine动画资源 Laya.loader.load("resources/boy/spineboy-pma.skel").then(() => { //添加spine组件 this.spine = this.sprite.addComponent(Laya.Spine2DRenderNode); this.spine.source = "resources/boy/spineboy-pma.skel"; this.spine.animationName = "walk"; })...

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

287. 调试正常但发布后,index.html在浏览器打开出现跨源受限的问题 [ 66%]

... Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. laya.core.min.js:6 [warn]Retry to load: E:/laya/layatest/release/layaweb/1.0.0/res/img/image.png index.html:1 Image from origin 'file:/...

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

288. 高级应用-寻路导航 [ 66%]

...NE; Laya.Stat.show(); this.path = new Array(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../.....

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

289. 3D基础显示对象 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...PhongMaterial = new Laya.BlinnPhongMaterial(); //预加载纹理资源 let resource: string = "resources/layabox.png"; Laya.loader.load(resource).then(() => { //为材质加载纹理 let tex = Laya.Loader.getTexture2D(resource); //设置贴图 boxMaterial.albedoTexture = tex; }); boxRender.shared...

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

290. 请问一下图集打包有命令行模式吗? [ 66%]

...下通过命令获得配置文件 "C:\Program Files\LayaAirIDE_版本号\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator.exe" --init配置完成后执行 "C:\Program Files\LayaAirIDE_版本号\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator.exe" --config atlasConfig就会按照配置...

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