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

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

251. 内嵌模式创建scene,运行时报找不到json文件 [ 75%]

内嵌模式创建scene,运行时报找不到json文件 我在一个空白工程里面创建了一个scene并使用内嵌模式,界面只是简单显示了一个label,在运行时,报错“laya.core.js:22326 Uncaught Can not find scene:Hello.scene”,原因是在/bin/目录下找不到场...

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

252. [LayaAir3]如何在3D场景添加文字呢 [ 75%]

...ᴵᑦ 赞同来自: 我是这样实验了一下可以,供参考 我在 Scene2D 的 RuntimeScript 中用 this.scene3D 去访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.sce...

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

253. 2.0场景问题? [ 75%]

...相关的链接 提交 1 个回复 bpmf_d 赞同来自: 不是继承Laya.Scene  而是继承layaMaxUI 这个文件里面你的页面的那个类 2019-05-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 aicode 相关问题 发起问题...

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

254. 求解:2D项目中加载View,Laya.Scene.load应该如何使用? [ 75%]

求解:2D项目中加载View,Laya.Scene.load应该如何使用?     如图,在主场景中嵌入一个View,直接运行可以显示,但是在挂载了runtime脚本之后,运行就不显示。 必须手动在View的runtime脚本中加一个this.loadScene("aaa.scene")才能正常显...

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

255. .lh 文件不能在同一js文件内重复引用吗? [ 75%]

...elf0 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf0);            shelf0.transform.translate(new Laya.Vector3(-4,1.2,35));            var shelf3 = Laya.Sprite3D.load("DoorShelf/shelf.lh");            this.scene.addChild(shelf3...

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

256. TypeError: relativePath is undefined [ 75%]

...ad property 'cursor' of undefined错误 运行报错 Uncaught Can not find scene:GameView.scene undefined 释放资源Cannot read property '_getSource' of undefined重新加载会容易报错 AS调用IOS原生返回值为undefined,这种情况要怎么解决 TiledMap里面Laya.ILaya报undefined La...

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

257. 关于3d的碰撞检测 [ 75%]

...测的结果一直是-1 相关代码:const field: Laya.MeshSprite3D = this.scene.getChildByName("stadium").getChildByName("field") as Laya.MeshSprite3D;//拿到地板 const sprite3d1MeshCollider: Laya.MeshCollider = field.addComponent(Laya.MeshCollider) as Laya.MeshCollider; sprite3d1MeshCollider.me...

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

258. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...iewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译...

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

259. TypeError: Cannot read property 'length' of null [ 74%]

...下: TypeError: Cannot read property 'length' of null at Sprite._setBelongScene (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13049:52) at Sprite._onAdded (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:13129:37) at Sprite._setParent (file:///D:/wo...

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

260. 摄像机动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 74%]

...导出场景后,添加到场景上就能看到效果了。 ```typescript Scene3D.load('LayaScene_scene/Conventional/scene.ls',Handler.create(this,function(scene:Scene3D):void{ Laya.stage.addChild(scene); })); ``` ![](img/2.gif)(图2)

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