大约有 336 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0035 秒)
Laya_社区(177) Laya2.0_文档(60) Laya3.0_api(24) Laya_示例(21) Laya2.0_api(20) laya_api(19) Laya3.0_文档(15)
....addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())); earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, fun...
来源: Laya2.0_文档 发布时间: 20210714
...dChild(new PointLight()) as PointLight; //设置点光源位置 pointLight.transform.position = new Vector3(0.4, 0.4, 0.0); //设置点光源的范围 pointLight.range = 6.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 图1中因...
来源: Laya2.0_文档 发布时间: 20210715
...ite3D.load("model/warehouse/1.lh"); scene.addChild(warehouse1); warehouse1.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); warehouse1.transform.translate(new Laya.Vector3(-25,0,0),false); warehouse1.name = "仓库1"; var warehouseCollider1 = warehouse1.addComponent(Laya.MeshCollider); war...
来源: Laya_社区 发布时间: 20171219
...shSprite3D(Laya.PrimitiveMesh.createSphere())) as Laya.MeshSprite3D; earth.transform.position = new Laya.Vector3(0, 0, 0); //创建EffectMaterial材质 var material = new Laya.EffectMaterial(); //加载地球贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, fun...
来源: Laya2.0_文档 发布时间: 20210714
...= new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 this.pointLight.range = 3.0; ``` **range** 为设置点光源的范围,相当于点光的照射范围,数值越大,光照范围越大。 ...
来源: Laya2.0_文档 发布时间: 20210714
...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...
来源: Laya2.0_文档 发布时间: 20210715
...//调整胖子的相对旋转,相对位移,以及缩放。 this.pangzi.transform.localRotation = this._rotation; this.pangzi.transform.localPosition = this._position; this.pangzi.transform.localScale = this._scale; ``` 点击事件中的部分挂点的移除代码: ```typescript //将role从...
来源: Laya2.0_文档 发布时间: 20210714
...nction(mesh){ teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, functio...
来源: Laya2.0_文档 发布时间: 20210715
... 已邀请: 与内容相关的链接 提交 1 个回复 hj 赞同来自: transform.position 2018-10-09 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 魂 相关问题 微信关系链:LayaAir引擎针对微信小游戏好友关系链实...
来源: Laya_社区 发布时间: 20180928
...ction(mesh) { teapot = scene.addChild(new Laya.MeshSprite3D(mesh)); teapot.transform.position = new Laya.Vector3(0, 1.75, 2); teapot.transform.rotate(new Laya.Vector3(-90, 0, 0), false, false); })); //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enab...
来源: Laya2.0_文档 发布时间: 20210715