大约有 11 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0019 秒)
...unction() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...unction() { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...on():void { //设置曝光强度 mat.exposure = Math.sin(exposureNumber += 0.01) + 1; mat.rotation += 0.01; }); })); ``` ![](img/1.gif)(图1)
来源: Laya2.0_文档 发布时间: 20210715
...``typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionVi...
来源: Laya2.0_文档 发布时间: 20210714
...``typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionVi...
来源: Laya2.0_文档 发布时间: 20210715
...``typescript //变换位置 this._position.x = Math.sin(this.scaleDelta += 0.01) * 2; this._position.z = Math.cos(this.scaleDelta += 0.01) * 2; //修改球的位置 this.sphere.transform.position = this._position; //计算位置 this._camera.viewport.project(this._position, this._camera.projectionVi...
来源: Laya2.0_文档 发布时间: 20210715
...aya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就...
来源: Laya2.0_文档 发布时间: 20210714
...xtends Laya.Script3D { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log...
来源: Laya2.0_文档 发布时间: 20210715
...移动的距离进行缩放 _camera.transform.translate(new Vector3(0, 0, -0.01 * (distance2 - distance))); distance = distance2; } } else if (0 === touchCount){ _text.text = "触控点归零"; first = true; lastPosition.x = 0; lastPosition.y = 0; first = true; isTwoTouch = false; } } ``` ![](img/4....
来源: Laya2.0_文档 发布时间: 20210715
...离进行缩放 this._camera.transform.translate(new Laya.Vector3(0, 0, -0.01 * (this.distance2 - this.distance))); this.distance = this.distance2; } } else if (0 === touchCount){ this._text.text = "触控点归零"; this.first = true; this.lastPosition.x = 0; this.lastPosition.y = 0; this.first = t...
来源: Laya2.0_文档 发布时间: 20210715