大约有 648 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0049 秒)
Laya_社区(363) Laya3.0_api(124) Laya2.0_文档(97) Laya_示例(42) Laya3.0_文档(13) laya_api(5) Laya2.0_api(4)
...st.getChildAt(0).clone()); a.transform.translate(new Laya.Vector3(0,1.38,-60))//transform.localPositionX-=2; a.transform.scale = new Laya.Vector3(10,10,10) a.transform.rotate(new Laya.Vector3(0, 90, 0), false, false); ...
来源: Laya_社区 发布时间: 20200107
...dChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D....
来源: Laya_社区 发布时间: 20200728
...shSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box0.transform.position=new Laya.Vector3(1,0,0); var box1= scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 0.1, 1))); box1.transform.position=new Laya.Vector3(-1,0,0); 建立了2快板,显示如下: 我建了box0和box1,就是2个板,怎...
来源: Laya_社区 发布时间: 20181214
...rectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` **setForward** 平行光...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` **setForward** 平行光的方...
来源: Laya2.0_文档 发布时间: 20210714
...定尺寸。 Returns number constantMaxSeparate get constantMaxSeparate(): Vector3 Defined in laya/d3/core/particleShuriKen/module/GradientSize.ts:197 最小分轴随机双固定尺寸。 Returns Vector3 constantMin get constantMin(): number Defined in laya/d3/core/particleShuriKen/module/GradientSi...
来源: Laya3.0_api 发布时间: 20231115
...umber = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { vec = new Laya.Vector3(0,-1,0); } else { vec = new Laya.Vector3(0,1,0); } this.rotate(vec); } } 监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,thi...
来源: Laya_社区 发布时间: 20180113
...aya.Sprite3D; asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4); //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7); // asteroid.transform.rotate(new Laya.Vector3( // ...
来源: Laya_社区 发布时间: 20191115
...开启Split Tone Parameters value: boolean Returns void gain get gain(): Vector3 set gain(value: Vector3): void Defined in laya/d3/core/render/PostEffect/ColorGradEffect.ts:353 gain 0-2 Returns Vector3 Defined in laya/d3/core/render/PostEffect/ColorGradEffect.ts:357 gain 0-2 Parameters value: Vector...
来源: Laya3.0_api 发布时间: 20231115
...arent.addChild(new Laya.MeshSprite3D(mesh)); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.position = new Laya.Vector3(ConstValue.boxOutScreen,ConstValue.boxHeight/2,0); var material = new Laya.StandardMaterial(); material.albedo = new Laya.Vector4(this.color.r,this.c...
来源: Laya_社区 发布时间: 20180113