大约有 1,708 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1480) Laya2.0_文档(88) Laya3.0_api(87) Laya3.0_文档(33) Laya2.0_api(6) laya_api(6) Laya_示例(4) Laya2.0_示例(4)
...._tarPosition, this._upVector3, false); //因为资源规格,这里需要旋转180度 this.layaMonkey.transform.rotate(this._rotation2, false, false); //调整位置 Tween.to(this._finalPosition, { x: this._position.x, y: this._position.y, z: this._position.z }, 40); this.moveSprite3D.transform.po...
来源: Laya3.0_文档 发布时间: 20230303
...Stays为false时生效。 rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — 克隆实例。 load()method public static function load(url:String, complete:Handler):void 加载网格模板。 Parameters url:String — 模板地址。 ...
来源: Laya2.0_api 发布时间: 20190513
...置材质 layaMonkey.meshRenderer.sharedMaterial = customMaterial; //开启旋转 Laya.timer.frameLoop(1, this, function() { layaMonkey.transform.rotate(this.rotation, false); }); })); ```  ### 2. stateMap 在 `subShader` 添加通道时,除了顶点着色器与片段着色器之外...
来源: Laya2.0_文档 发布时间: 20210714
...ceJoint3.selfAnchor = p3; distanceJoint3.otherAnchor = anchor; // 因为有旋转,localAnchor很难计算,使用绝对位置换算 distanceJoint3.frequency = frequencyHz; distanceJoint3.damping = dampingRatio; leg1.addComponentIntance(distanceJoint3); distanceJoint3.maxLength = distanceJoint3.mi...
来源: Laya2.0_示例 发布时间: 20260106
...fff00", 5, 0, 0); // this.statue.filters = [glowFilter]; // 守护神设置旋转 this.angel.pivot(boundAngel.width/2,boundAngel.height); this.angel.rotation = -15; // 守护神设置呼吸 Laya.Tween.to(this.angel,{scaleY:0.99},900,Laya.Ease.linearInOut,Handler.create(this,this.angelTween1)); // ...
来源: Laya_社区 发布时间: 20170720
...Stays为false时生效。 rotation:Quaternion (default = null) — 世界旋转,worldPositionStays为false时生效。 ReturnsSprite3D — 克隆实例。 load()method public static function load(url:String):Sprite3D 加载网格模板,注意:不缓存。 Parameters url:String — 模板地址...
来源: laya_api 发布时间: 20170929
....lookAt(_tarPosition, _upVector3, false); //因为资源规格,这里需要旋转180度 layaMonkey.transform.rotate(new Vector3(0, 180, 0), false, false); //调整位置 Tween.to(_finalPosition, {x: _position.x, y: _position.y, z: _position.z}, 40); moveSprite3D.transform.position = _finalPosition; ...
来源: Laya_示例 发布时间: 20260106
..._level + ""; } //每帧更新时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积...
来源: Laya3.0_文档 发布时间: 20251010
...中使用代码改变节点的属性了,例如,可以让Cube绕自身旋转,示例代码如下所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = ...
来源: Laya3.0_文档 发布时间: 20251010
...nStays为false时生效。 Default value rotation: Quaternion = null 世界旋转,worldPositionStays为false时生效。 Returns Sprite3D 克隆实例。 Static load load(url: string, complete: Handler): void Defined in laya/d3/core/Sprite3D.ts:77 加载网格模板。 Parameters url: string 模板...
来源: Laya3.0_api 发布时间: 20231115