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

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

191. 3D模型怎么删除?没回切换页面原来的模型都还在? [ 71%]

...并继承了各自的ui.xxxUI   2.新建了个场景添加到B页面 this.scene = new Laya.Scene(); this.addChild(this.scene); 3.新建模型,并且添加B页面的3D场景中 var map: Laya.Sprite3D = Laya.Sprite3D.load("cj/cj.lh"); this.scene.addChild(map);   4.切换页面 private playGame(): vo...

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

192. unity导出的场景,相机节点找不到,移动和属性设置都做不了 [ 71%]

...出的场景,相机节点找不到,移动和属性设置都做不了 var scene:Scene=Scene.load("LayaScene_Main/Main.ls"); Laya.stage.addChild(scene); camera = Laya.stage.getChildByName("Main Camera") as Camera;   ....... camera.viewportPointToRay(point, ray); 提示错误:Cannot read property ...

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

193. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 71%]

...比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Ha...

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

194. ls文件导入错误 [ 71%]

...一个文件,然后layabox中加载场景。 Laya.loader.create(this.strScene, Laya.Handler.create(this, this.onLoadScene)); private onLoadScene() { var scene: Laya.Scene = Laya.Scene.load(this.strScene); if (scene == null) { return; } this.mScene = scene;   大致的流程如上   错误堆栈...

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

195. TypeError: Cannot read property 'View' of undefined [ 70%]

...面相应的TS文件 Laya2.1.0 JS调用Java PlatformClass undefined LayaScene和View什么区别? 运行报错 Uncaught Can not find scene:GameView.scene undefined 求解:2D项目中加载View,Laya.Scene.load应该如何使用? Cannot read property 'displayObject' of null laya,dialog弹...

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

196. 有些模型load之后,MeshSprite3D 的共享材质个数为0,无法对材质进行操作 [ 70%]

...材质进行操作 _disObj3d = Sprite3D.load("../../res/models/cike.lh"); _scene3d.addChild(_disObj3d); _disObj3d.once(Event.HIERARCHY_LOADED, null, function(sender:Sprite3D):void {       var ms:MeshSprite3D = _disObj3d.getChildByName("mod_CiKeZhuangBei_Body_03") as MeshSprite3D;       if(ms...

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

197. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 70%]

...随便取的名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ...

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

198. Uncaught unknown animationClip version. [ 70%]

...复下 2019-05-01 1 0 分享 微博 QZONE 微信 Zong 赞同来自: Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene);         }));   加载代码 2019-03-13 0 0 分享 微博 Q...

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

199. 导入3D模型有问题 [ 70%]

...样的。   主要代码: //添加照相机         var camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000)));         camera.transform.translate(new Laya.Vector3(0, 3, 3));         camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, false);         camera.clearColor = nul...

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

200. Texture2D的GPU纹理压缩的使用(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 70%]

...typescript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGP...

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