大约有 699 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0078 秒)
Laya_社区(471) Laya2.0_文档(66) Laya3.0_api(43) Laya_示例(42) Laya3.0_文档(33) Laya2.0_api(29) laya_api(15)
...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
...一个文件,然后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
...材质进行操作 _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
...面相应的TS文件 Laya2.1.0 JS调用Java PlatformClass undefined Laya的Scene和View什么区别? 运行报错 Uncaught Can not find scene:GameView.scene undefined 求解:2D项目中加载View,Laya.Scene.load应该如何使用? Cannot read property 'displayObject' of null laya,dialog弹...
来源: Laya_社区 发布时间: 20170226
...复下 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
...随便取的名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ...
来源: Laya2.0_文档 发布时间: 20210715
...样的。 主要代码: //添加照相机 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
...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
...预览,右边laya运行 代码就一个加载ls文件 Laya.Scene3D.load("res/LayaScene_Level1/Conventional/Level1.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); ...
来源: Laya_社区 发布时间: 20210428
...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