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

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

1. 高级应用-寻路导航 [ 100%]

...s")); //删除原始资源中包含的默认相机 var camera = this.scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.removeSelf(); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); camera.sky = skyBox; ...

来源: Laya_示例 发布时间: 20241118

2. 3D场景-地形场景 [ 98%]

...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Scenes").getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox3/skyCube.ltc"); cam...

来源: Laya_示例 发布时间: 20241118

3. 发射射线检测不到,物体有包围盒 [ 96%]

...     self.owner.addChild(scene3d);              var lv = scene3d.getChildByName("--- GAMEPLAY ---").getChildByName("Levels Parent");              // Laya.Sprite3D.load("res/prefabs/Conventional/prefabs.lh", Laya.Handler.create(null, function (sp) {                        ...

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

4. PBRStandardMaterial材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 95%]

...erial.SmoothnessSource_MetallicGlossTexture_Alpha; let barrel = this.scene.getChildByName("Wooden_Barrel"); let barrel1 = this.scene.getChildByName("Wooden_Barrel (1)"); let barrel2 = this.scene.getChildByName("Wooden_Barrel (2)"); let barrel3 = this.scene.getChildByName("Wooden_Barrel (3)"); barrel...

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

5. rigidBody.applyForce 物体不会移动 [ 93%]

...(scene); //添加方向光 var directionlight: Laya.DirectionLight = scene.getChildByName( "Directional Light" ) as Laya.DirectionLight; this.directionlight = directionlight; //加入子層人物腳色到舞台 var littleGirl: Laya.Sprite3D = scene.getChildByName( "Girl" ) as Laya.Sprite3D; scene.ad...

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

6. 2.6.1物理bug [ 93%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

7. 材质-PBRStandard材质 [ 92%]

...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../re...

来源: Laya_示例 发布时间: 20241118

8. 2.6物理问题 [ 92%]

... this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(PhysicsCollider); collision.restitution = 0.1; this.ball = this.scene3D.getCh...

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

9. 射线检测-碰撞器混合 [ 91%]

...tor3(8, 8, 8); this.layaMonkeyMeshSprite3D = this.layaMonkey.getChildAt(0).getChildByName("LayaMonkey"); //添加盒型碰撞器 var boxCollider = this.layaMonkeyMeshSprite3D.addComponent(Laya.BoxCollider); boxCollider.setFromBoundBox(this.layaMonkeyMeshSprite3D.meshFilter.sharedMesh.boundingBox); t...

来源: Laya_示例 发布时间: 20241118

10. 高级应用-基于物理渲染 [ 91%]

...e.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...

来源: Laya_示例 发布时间: 20241118