大约有 394 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0036 秒)
Laya_社区(158) Laya3.0_api(85) Laya3.0_文档(63) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...ivePhysicsTransformation(physicTransformOut, force) { var transform = this.owner._transform; if (force || this._getTransformFlag(Laya.Transform3D.TRANSFORM_WORLDPOSITION)) { var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = CannonPhysicsComponent....
来源: Laya_社区 发布时间: 20210904
...n(() => { this.createBtn(); this.createvbox(); // 添加VBox组件 this.owner.addChild(this.vbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建VBox组...
来源: Laya3.0_文档 发布时间: 20240910
...x; lastPosition.y = touch.position.y; //根据移动的距离进行旋转 (owner as Sprite3D).transform.rotate(new Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ _text.text = "触控点为2"; isTwoTouch = true; //获取两个触碰点 var touch:Touch = _scen...
来源: Laya2.0_文档 发布时间: 20210715
...n(() => { this.createBtn(); this.createHbox(); // 添加HBox组件 this.owner.addChild(this.hbox); }); } // 创建Button组件 private createBtn(): void { this.btn1 = new Laya.Button(this.skins); this.btn2 = new Laya.Button(this.skins); this.btn3 = new Laya.Button(this.skins); } // 创建HBox组...
来源: Laya3.0_文档 发布时间: 20240910
...,会报这个错:node._setParent is not a function this.imageBg = this.owner.getChildByName("image_bg"); console.log("this.imageBg==="+this.imageBg); for (let iColumns = 1; iColumns < this.intColumns; iColumns++) { this.arrLove[iColumns] = []; for (let iRows = 1; iRows < this.intRows; iRow...
来源: Laya_社区 发布时间: 20190625
...同来自: /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state: Laya.AnimatorSt...
来源: Laya_社区 发布时间: 20190802
...forceActivationState(5); var flags=btColObj.getCollisionFlags(); if ((this.owner).isStatic){ if ((flags & 2)> 0) flags=flags ^ 2; flags=flags | 1; }else { if ((flags & 1)> 0) flags=flags ^ 1; flags=flags | 2; } btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _su...
来源: Laya_社区 发布时间: 20190321
...连接刚体,可不设置,默认为左上角空刚体PrismaticJoint owner : Node [只读]获取所属Node节点。 Component selfBody : RigidBody[首次设置有效]关节的自身刚体PrismaticJoint upperTranslation : Number启用约束后,刚体移动范围的上限,是距离anchor...
来源: Laya2.0_api 发布时间: 20190513
...sition.y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._sce...
来源: Laya2.0_文档 发布时间: 20210715
...sition.y = this.touch.position.y; //根据移动的距离进行旋转 this.owner.transform.rotate(new Laya.Vector3(1 * deltaY /2, 1 * deltaX / 2, 0), true, false); } } else if (2 === touchCount){ this._text.text = "触控点为2"; this.isTwoTouch = true; //获取两个触碰点 var touch = this._sce...
来源: Laya2.0_文档 发布时间: 20210715