大约有 369 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0042 秒)
Laya_社区(153) Laya2.0_文档(80) Laya3.0_api(43) laya_api(39) Laya2.0_api(33) Laya3.0_文档(19) Laya_示例(2)
...添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3( cube.transform.pivot.x + 0, cube.transform.pivot.y - height/2, cube.transform.pivot.z - width/2); // 旋转 cube...
来源: Laya_社区 发布时间: 20190427
...iffuseTexture = Texture2D.load("res/earth.png"); material.ambientColor=new Vector(2,2,2); sphere.meshRender.material = material; 我照教程里设置了环境颜色 material.ambientColor=new Vector(2,2,2); 但是无效,模型并没有加亮。是为啥 2018-05-31 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20180531
...tem.ts:301 粒子的播放速度。 startColorConstant startColorConstant: Vector4 = new Vector4(1, 1, 1, 1) Inherited from ShurikenParticleSystem.startColorConstant Defined in laya/d3/core/particleShuriKen/ShurikenParticleSystem.ts:290 开始颜色,0模式。 startColorConstantMax startColorConst...
来源: Laya3.0_api 发布时间: 20231115
...Child(camera); //移动摄像机位置 camera.transform.translate(new Laya.Vector3(0, 4, 8)); //旋转摄像机角度 camera.transform.rotate(new Laya.Vector3( -30, 0, 0), true, false); //创建方向光 var light:Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight...
来源: Laya_社区 发布时间: 20180307
...ter(other) { this.owner.meshRenderer.sharedMaterial.albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内时) * 注:如相对移动速度过快,可能直接越过 */ onTriggerStay(other) {} /** * 当其他...
来源: Laya2.0_文档 发布时间: 20210715
...cene.addChild(camera); camera.transform.translate(new Vector3(0, 0.25, 0.6)); camera.transform.rotate(new Vector3(-30,0,0),true,false); var map:Sprite3D = Sprite3D.load("3d/zhuoZi/ZhuoZi.lh"); map.transform.localScal...
来源: Laya_社区 发布时间: 20170314
...h.meshRender.material = fishmaterial; fish.transform.localScale = new Laya.Vector3(0.001,0.001,0.001); fish.transform.localPosition = new Laya.Vector3(0,1,0); fish.transform.rotate(new Laya.Vector3(0,-Math.PI/2,0)); //移动鱼 Laya.Tween.to(fish,{x:-1},3000,Laya.Ease.linearIn,null) 这个Laya.Tween...
来源: Laya_社区 发布时间: 20170918
...nt = new Point(posX, posY); this.bottomScene.localToGlobal(pos2d); var pos:Vector3 = new Vector3(pos2d.x, pos2d.y, 0); var _translate:Vector3 = new Vector3(0, 0, 0); camera.convertScreenCoordToOrthographicCoord(pos, _translate); 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180319
...ate scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1, 0); Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stag...
来源: Laya_社区 发布时间: 20190531
...ya.PointLight()); //设置点光源颜色 this.pointLight.color = 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