• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 412 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0042 秒)

341. laya.physics.joint.MotorJoint [ 48%]

...otherBody : RigidBody[首次设置有效]关节的连接刚体MotorJoint owner : Node [只读]获取所属Node节点。 Component  selfBody : RigidBody[首次设置有效]关节的自身刚体MotorJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties P...

来源: Laya2.0_api 发布时间: 20190513

342. Laya 3D项目中 3d模型可以添加2d刚体吗 这边添加会出现报错 [ 48%]

...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

343. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 48%]

...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

344. laya.physics.joint.RevoluteJoint [ 48%]

...Body[首次设置有效]关节的连接刚体,可不设置RevoluteJoint owner : Node [只读]获取所属Node节点。 Component  selfBody : RigidBody[首次设置有效]关节的自身刚体RevoluteJoint  upperAngle : Number启用约束后,刚体旋转范围的上限弧度RevoluteJointProt...

来源: Laya2.0_api 发布时间: 20190513

345. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 47%]

...t():void { trace("onStart"); } override public function onUpdate():void { (owner as Sprite3D).transform.rotate(rotation, false); } override public function onLateUpdate():void { trace("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们可以看下运行之后的效果: ![](img/2.gif)(...

来源: Laya2.0_文档 发布时间: 20210714

346. [LayaAir3]3.3.2与设置组件灰显相关的 Bug 和 Crash [ 47%]

...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

347. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...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

348. laya.d3.component.animation.KeyframeAnimations [ 47%]

...ad-only] 获取播放器当前动画的节点数量。 KeyframeAnimations owner : ComponentNode[read-only] 获取所属Sprite3D节点。 Component3D  player : AnimationPlayer[read-only] 获取动画播放器。 KeyframeAnimations started : Boolean是否已执行start函数。Component3D  templ...

来源: laya_api 发布时间: 20170929

349. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 47%]

...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

350. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 47%]

...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