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

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

981. Unity插件使用说明(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 37%]

...如下: ```typescript //3d场景加载 Laya.Scene3D.load("xx/xx.ls",Laya.Handler.create(null,function(scene){ //加载完成后,把加载回调中返回的完整场景scene添加到舞台 Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); /** ** 省...

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

982. 多种碰撞器形状(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 35%]

...。 ```typescript Laya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh) { //....省略中间 //读取导出的桌子模型 var table = scene.addChild(new Laya.MeshSprite3D(mesh)); //给桌子加刚体并且设置刚体属性 var rigidBody = table.addComponent(Lay...

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

983. 多种碰撞器形状(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 33%]

...。 ```typescript Laya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh) { //....省略中间 //读取导出的桌子模型 var table = scene.addChild(new Laya.MeshSprite3D(mesh)) as Laya.MeshSprite3D; //给桌子加刚体并且设置刚体属性 var rig...

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

984. 多种碰撞器形状(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 33%]

...一张桌子。 ```typescript Mesh.load("res/threeDimen/Physics/table.lm", Handler.create(this, function(mesh:Mesh):void { //....省略中间 //读取导出的桌子模型 var table:MeshSprite3D = scene.addChild(new MeshSprite3D(mesh)) as MeshSprite3D; //给桌子加刚体并且设置刚体属性 va...

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

985. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 33%]

...略若干代码 */ Laya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh) { //读取桌子模型节点对象,添加到3D场景节点下, var table: Sprite3D = this.scene.addChild(new Laya.Sprite3D(res)); //给桌子节点对象添加刚体碰撞器 v...

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

986. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 29%]

...略若干代码 */ Laya.Scene3D.load("Conventional/SampleScene.ls", Laya.Handler.create(null, function (_Scene3D: Laya.Scene3D) { //添加3D场景到舞台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sk...

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

987. 压缩纹理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 23%]

... { onAwake(): void { Laya.loader.load(["resource/AtlasConfig.atlas"], Laya.Handler.create(this, () => { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500, 100); img.skin = "resources/img_bg.png"; //图集中的图片 })); } onStart() { Laya.Stat.show(0, 0); } } 通过示例代码,...

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

988. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 19%]

...01-06 17:34:41.557 23051 23051 E C05a05/SecCompEnhanceAdapter: [InitEnhanceHandler]:init enhance lib /system/lib64/libsec_comp_client_enhance.z.so failed, error Error loading shared library /system/lib64/libsec_comp_client_enhance.z.so: No such file or directory 01-06 17:34:41.557 23051 23051 I C02c...

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

989. laya native加载人物模型出错 [ 6%]

... 我使用 var that=this; Laya.loader.create("res/3d/baseman01.lh", Laya.Handler.create(this, function(){  var scene3d=new Laya.Scene3D(); that.owner.addChild(scene);  var model=Laya.loader.getRes(window.getPath("res/3d/baseman01.lh")); var player=model.clone(); scene3d.addChild(player);    }));...

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