大约有 862 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0056 秒)
Laya_社区(563) Laya2.0_文档(114) Laya3.0_api(79) Laya3.0_文档(72) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...相关的链接 提交 1 个回复 bpmf_d 赞同来自: 不是继承Laya.Scene 而是继承layaMaxUI 这个文件里面你的页面的那个类 2019-05-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 aicode 相关问题 发起问题...
来源: Laya_社区 发布时间: 20181219
求解:2D项目中加载View,Laya.Scene.load应该如何使用? 如图,在主场景中嵌入一个View,直接运行可以显示,但是在挂载了runtime脚本之后,运行就不显示。 必须手动在View的runtime脚本中加一个this.loadScene("aaa.scene")才能正常显...
来源: Laya_社区 发布时间: 20190911
...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
...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
...测的结果一直是-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
...导出场景后,添加到场景上就能看到效果了。 ```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
...下: 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
...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
...例,麻烦测试一下,我用的是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
...ject' of undefined ios14系统下 blendMode='lighter' 图片异常 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 unity到导出场景加载时抛异常,不知所措 关于场景编辑器的,用的最新版引擎 我这样载入场景问...
来源: Laya_社区 发布时间: 20190318