大约有 171 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
...at = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.mesh = plane...
来源: Laya_示例 发布时间: 20241124
...(0,0) var mesh:MeshSprite3D = scene.addChild(new MeshSprite3D(Mesh.load("sphere-Sphere001.lm"))) as MeshSprite3D; Utils3D.convert3DCoordTo2DScreenCoord(translate, convertTranslate); mesh.transform.localPosition = convertTranslate; 这里明明就是将一个屏幕坐标...
来源: Laya_社区 发布时间: 20161215
...用这种形式。。。。skinnedMesh.meshFilter.sharedMesh = Laya.Mesh.load( zhoujianhua0591 • 2018-02-09 17:28 var skinnedMesh:Laya.SkinnedMeshSprite3D = this.role3d.getChildAt(0).getChildAt(0) as Laya.SkinnedMeshSprite3D; skinnedMesh.meshFilter.sharedMesh = Laya.Mesh.load("bin\character\b...
来源: Laya_社区 发布时间: 20180209
...提交 3 个回复 Laya_Aaron 赞同来自: //天空盒代码 BaseMaterial.load("../../../../res/threeDimen/skyBox/skyBox1/skyBox.lmat", Handler.create(null, function(mat:BaseMaterial):void { //获取相机的天空渲染器 var skyRenderer:SkyRenderer = camera.skyRenderer; //创...
来源: Laya_社区 发布时间: 20190301
...veScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068,...
来源: Laya_示例 发布时间: 20241124
...Shader MultiplePassOutlineMaterial.initShader(); //加载网格 Laya.Mesh.load("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = ...
来源: Laya2.0_文档 发布时间: 20210715
...Shader MultiplePassOutlineMaterial.initShader(); //加载网格 Laya.Mesh.load("res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = ...
来源: Laya2.0_文档 发布时间: 20210715
... let pangziAnimator = sp.getComponent(Laya.Animator); Laya.AnimationClip.load("res3d/scene/Assets/FBX/zj_nan_01/boy@animation-idle_show.lani",LayaWrap.creatHandlerCall(this,(aniClip)=>{ //创建动作状态 let state1 = new Laya.AnimatorState(); //动作名称 state1.name = "hello"; //动作播...
来源: Laya_社区 发布时间: 20190613
... timerLoop timerOnce createFromMesh createFromMeshAndHeightMap instantiate load Constructors constructor new MeshTerrainSprite3D(mesh: Mesh, heightMap: HeightMap, name?: string): MeshTerrainSprite3D Overrides MeshSprite3D.constructor Defined in laya/d3/core/MeshTerrainSprite3D.ts:84 创建一个 Ter...
来源: Laya3.0_api 发布时间: 20231102
...方都有远景效果。 ```typescript //天空盒代码 Laya.BaseMaterial.load("res/threeDimen/skyBox/skyBox1/skyBox.lmat", Laya.Handler.create(this, function(mat) { //设置相机的清除标识为天空盒 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; //获取相机的天空渲染器 var skyR...
来源: Laya2.0_文档 发布时间: 20210715