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

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

1. 射线检测-碰撞器混合 [ 100%]

...transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.addComponent(CameraMoveScript); //加载猴子 this.layaMonkey = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); this.layaMonkey.transform.position = new Laya.Vector3(0, 0, 1);...

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

2. 射线检测-放置物体 [ 95%]

...0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector...

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

3. 射线检测-点击行走 [ 93%]

...0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane.meshFilter.sharedMesh; var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(0.5, 0.5, 0.5))); var mat = new Laya.StandardMaterial(); mat.diffuseTexture = Laya...

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

4. 自定义shader-shader预编译 [ 90%]

...le;package shaderModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource...

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

5. Sprite3D-Sprite3D加载 [ 89%]

...;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.ma...

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

6. 天空-天空盒 [ 89%]

...era.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //天空盒 var skyBox = new Laya.SkyBox(); camera.sky = skyBox; skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/s...

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

7. 高级应用-Laya3D与网页混合 [ 84%]

...;package advancedModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import l...

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

8. 照相机-多照相机 [ 83%]

...ra2.normalizedViewport = new Laya.Viewport(0.5, 0.0, 0.5, 0.5); camera2.addComponent(CameraMoveScript); camera2.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); skyBox.textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox2/skyCube.ltc"); camera2.sky = skyB...

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

9. Sprite3D-Sprite3D克隆 [ 83%]

...;package sprite3dModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.ma...

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

10. 照相机-正交相机 [ 82%]

...ra;package cameraModule { import laya.ani.AnimationTemplet; import laya.d3.component.animation.SkinAnimations; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import l...

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