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

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

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_示例 发布时间: 20241117

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

...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_示例 发布时间: 20241117

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

...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_示例 发布时间: 20241117

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

...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_示例 发布时间: 20241117

5. 天空-天空盒 [ 80%]

...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_示例 发布时间: 20241117

6. Sprite3D-Sprite3D加载 [ 77%]

...;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_示例 发布时间: 20241117

7. 动画-旧版骨骼动画 [ 72%]

....7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var skinAniUrl = [ "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@walk-walk.lsani", "../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/Model/z@attack-attack.lsani", ".....

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

8. 高级应用-Laya3D与网页混合 [ 67%]

...;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_示例 发布时间: 20241117

9. 照相机-多照相机 [ 66%]

...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_示例 发布时间: 20241117

10. Sprite3D-Sprite3D克隆 [ 66%]

...;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_示例 发布时间: 20241117