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

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

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

252. TiledMap地图 · LayaAir3.0文档 · 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_文档 发布时间: 20230303

253. 关于3d的碰撞检测 [ 74%]

...测的结果一直是-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

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

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

256. 射线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

257. 视频节点 · LayaAir3.0文档 · LAYABOX [ 74%]

...到Source后,是无法自动播放的,需要用代码进行控制。在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将VideoNode拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = ...

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

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

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

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

259. laya2.0 IDE继承自定义类要怎么写? [ 74%]

...以每次创建界面的时候继承UIBase类,而不用继承view 或者scene呢 2018-12-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 宇智波 旋 赞同来自: 如果是为了做UI管理的话 可以用...

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

260. 物理形状扫描检测(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 74%]

... if (this.castAll) { //进行形状检测,检测所有碰撞的物体 this.scene.physicsSimulation.shapeCastAll(sphereCollider, this.from, this.to, this.hitResults); for (i = 0, n = this.hitResults.length; i 该示例中射线摆放的模型是使用代码创建的,只是为了方便观察和理...

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