大约有 868 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0059 秒)
Laya_社区(571) Laya2.0_文档(110) Laya3.0_api(79) Laya3.0_文档(74) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...测的结果一直是-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
...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
...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
...例,麻烦测试一下,我用的是1.7.1JS版的function MousePickingScene() { MousePickingScene.super(this); this.ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.point = new Laya.Vector2(); this._outHitInfo = new Laya.RaycastHit(); this.phasorSpriter3D = new Laya....
来源: Laya_社区 发布时间: 20170323
...相关的链接 提交 1 个回复 bpmf_d 赞同来自: 不是继承Laya.Scene 而是继承layaMaxUI 这个文件里面你的页面的那个类 2019-05-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 aicode 相关问题 发起问题...
来源: Laya_社区 发布时间: 20181219
...下: 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
...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = ...
来源: Laya2.0_文档 发布时间: 20210714
内嵌模式创建scene,运行时报找不到json文件 我在一个空白工程里面创建了一个scene并使用内嵌模式,界面只是简单显示了一个label,在运行时,报错“laya.core.js:22326 Uncaught Can not find scene:Hello.scene”,原因是在/bin/目录下找不到场...
来源: Laya_社区 发布时间: 20190625
...以每次创建界面的时候继承UIBase类,而不用继承view 或者scene呢 2018-12-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 宇智波 旋 赞同来自: 如果是为了做UI管理的话 可以用...
来源: Laya_社区 发布时间: 20181208
... IDE1.7.8 json图集加载问题 图集打包找不到图集文件 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 请问下加载TFF字体要怎么加载呢? 微信小程序 发布后缺少app.json文件 编辑了图片 执行代码说加载...
来源: Laya_社区 发布时间: 20170912