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

大约有 699 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)

191. 预制体 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...pe : Laya.Camera } ) private camera: Laya.Camera; @property( { type : Laya.Scene3D } ) private scene: Laya.Scene3D; onStart() { console.log("Game start"); //加载预制体文件 Laya.loader.load("resources/Prefab.lh").then( (res)=>{ //创建预制体 let monkey: Laya.Sprite3D = res.create(); //...

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

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

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

...材质进行操作 _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

194. TypeError: Cannot read property 'View' of undefined [ 71%]

...面相应的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

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

196. 在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

197. 导入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

198. 我升级引擎到1.7.16beta,从Unity导入的模型就遇到问题了,可以帮我查看一下吗? [ 70%]

...TER; Laya.stage.alignV = Laya.Stage.ALIGN_CENTER; Laya.stage.addChild(Laya.Scene.load("res/LayaScene_Shark/Shark.ls")) as Laya.Sprite3D; } } new LayaAir3D(); 附件 : --> Shark.rar 2018-01-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

199. 加载unity导出的场景显示模糊 [ 70%]

...预览,右边laya运行         代码就一个加载ls文件 Laya.Scene3D.load("res/LayaScene_Level1/Conventional/Level1.ls",Laya.Handler.create(null,function(scene){             //加载完成获取到了Scene3d             Laya.stage.addChild(scene);         ...

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

200. 载入场景报错 [ 70%]

...nV = Laya.Stage.ALIGN_MIDDLE; console.log("load"); Laya.loader.create("TestScene/TestScene.ls", Laya.Handler.create(this, this.LoadSceneComplete)); } LoadSceneComplete() { console.log("finish") let scene: Laya.Scene = Laya.loader.getRes("TestScene/TestScene.ls") as Laya.Scene; // scene.enableLight =...

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