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

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

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

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

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

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

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

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

253. .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

254. 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

255. 关于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

256. 摄像机动画的使用(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

257. 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

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

...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_文档 发布时间: 20240910

259. 射线BUG [ 74%]

...例,麻烦测试一下,我用的是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

260. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 74%]

...ject' of undefined ios14系统下 blendMode='lighter' 图片异常 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity到导出场景加载时抛异常,不知所措 关于场景编辑器的,用的最新版引擎 我这样载入场景问...

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