大约有 3,858 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3310) Laya2.0_文档(198) Laya3.0_api(102) Laya3.0_文档(97) Laya2.0_api(82) Laya_示例(44) laya_api(25)
LayaAir引擎 场景节点如何获取,类似cocos的cc.find 场景scene内有多层子节点。在子节点a中,想调用scene的方法。 总不能a.parent.parent.parent一直找吧。 cocos有cc.find("canvas/"),直接从场景的根节点开始找 2019-03-13 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20190313
...一个文件,然后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
LayaAir3.0.0-beat.5:Scene3D添加的材质运行时提示:Failed to load /src/material/地板.lmat 1、LayaAir3.0.0-beat.5:Scene3D添加的材质运行时提示:Failed to load /src/material/地板.lmat。 编辑时显示的没有问题,运行后所有的材质都提示:Failed to load /s...
来源: Laya_社区 发布时间: 20230303
laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 如题,laya2的Scene默认是文件模式,不会再自动生成场景类了,此时该如何获得场景内的元素呢,比如一个叫b1的Button,在该场景下的runtime里已经不...
来源: Laya_社区 发布时间: 20190615
...fish_bg.png"); //开启统计信息 Laya.Stat.show(); //添加3D场景 let scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; //添加照相机 let camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))) as Laya.Camera; camera.orthographic = true; camera.transform...
来源: Laya_社区 发布时间: 20180302
...场景后,添加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
...场景后,添加到场景上就能看到效果了。 ```typescript Laya.Scene3D.load('LayaScene_scene/Conventional/scene.ls',Laya.Handler.create(this,function(scene){ Laya.stage.addChild(scene); })); ``` (图2)
来源: Laya2.0_文档 发布时间: 20210715
[LayaAir3]挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错 挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);} 点击就报错 附件 : --> 2023-12-20 添加评论 ...
来源: Laya_社区 发布时间: 20231220
...nLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; imp...
来源: Laya_社区 发布时间: 20170331
...载,提示不识别路径 //加载3D资源 Laya.loader.create([{url:"LayaScene_Demo/Demo.ls","type":Laya.Scene}, {url:"LayaScene_Scene/Scene.ls","type":Laya.Scene}, {url:"LayaScene_People/People.lh","type":Laya.Sprite3D}], Laya.Handler.create(this,this.on3DComplete)); 报错提示 message:“Loa...
来源: Laya_社区 发布时间: 20181228