大约有 412 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)
Laya_社区(172) Laya3.0_api(85) Laya3.0_文档(67) Laya2.0_api(43) laya_api(23) Laya2.0_文档(21) Laya2.0_示例(1)
...otherBody : RigidBody[首次设置有效]关节的连接刚体MotorJoint owner : Node [只读]获取所属Node节点。 Component selfBody : RigidBody[首次设置有效]关节的自身刚体MotorJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties P...
来源: Laya2.0_api 发布时间: 20190513
...d模型可以添加2d刚体吗 这边添加会出现报错 TypeError: this.owner.localToGlobal is not a function preload.js:55 at RigidBody.__proto._createBody (/Users/tuyoo/client5/work/Laya_work/FlipRush/LayaProject/car/bin/libs/laya.physics.js:2031:27) at RigidBody.__proto._onAwake (/Users/tuyoo/...
来源: Laya_社区 发布时间: 20190107
...1 新建个3D项目 2 在main.ts start里写 let camera:Laya.Camera = this.owner as Laya.Camera; let renderTexture:Laya.RenderTexture = camera._getRenderTexture(); let out:Uint8Array = new Uint8Array(50 * 28 * 4); let pixels:Uint8Array = await renderTexture.getDataAsync(0, 0, 50, 28, out) as Uint8Ar...
来源: Laya_社区 发布时间: 20250916
...Body[首次设置有效]关节的连接刚体,可不设置RevoluteJoint owner : Node [只读]获取所属Node节点。 Component selfBody : RigidBody[首次设置有效]关节的自身刚体RevoluteJoint upperAngle : Number启用约束后,刚体旋转范围的上限弧度RevoluteJointProt...
来源: Laya2.0_api 发布时间: 20190513
...t():void { trace("onStart"); } override public function onUpdate():void { (owner as Sprite3D).transform.rotate(rotation, false); } override public function onLateUpdate():void { trace("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: (...
来源: Laya2.0_文档 发布时间: 20210714
...date(normalizeTime: number): void { const sp = this.playStateInfo.animator.owner as Laya.Sprite; sp.graphics.repaint(); } } 修改后的完整源码见附件。 LayaTest2.zip 2025-10-27 0 0 分享 微博 QZONE 微信 lv 赞同来自: layabox 崩溃问题会在3.3.3版本修复 2025-10-17 1 0 分享 ...
来源: Laya_社区 发布时间: 20251010
...is.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟进度条加载 private changeValue(): void { if (this.progressBar.value >= 1) this.progressBar.value = 0; this.progressBar.val...
来源: Laya3.0_文档 发布时间: 20251010
...ad-only] 获取播放器当前动画的节点数量。 KeyframeAnimations owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D templ...
来源: laya_api 发布时间: 20170929
...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
...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