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

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

361. laya.physics.joint.PrismaticJoint [ 46%]

...连接刚体,可不设置,默认为左上角空刚体PrismaticJoint owner : Node [只读]获取所属Node节点。 Component  selfBody : RigidBody[首次设置有效]关节的自身刚体PrismaticJoint  upperTranslation : Number启用约束后,刚体移动范围的上限,是距离anchor...

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

362. 多点触控的使用(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 46%]

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

363. 多点触控的使用(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 46%]

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

364. 动画混合问题,Avatar动画混合报错. [ 46%]

... public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Animator) as Laya.Animator; console.log("11"); }  public RoleMove(dir:Laya.Vector3) { let norDir:Laya.Vector3 = Laya.Vector3.ZERO; Laya.Vector3.normalize(...

来源: Laya_社区 发布时间: 20191026

365. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 46%]

... this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 this.hr = new HttpRequest(); //请求响应的进度改变时触发 this.hr.on(Event.PROGRESS, this, this.onHttp...

来源: Laya3.0_文档 发布时间: 20251010

366. 请问laya2.0中想要实现1.0中的扩展脚本或附加脚本,应如何实现?prefab能关联脚本吗? [ 46%]

... QZONE 微信 Laya_Aaron 赞同来自: 可以在sript脚本里 通过 this.owner.getchildbyname("xx") 方式获取stage上的节点, runtime 脚本可以直接this.xx获取   可视化属性可以参照 https://ldc2.layabox.com/doc/?nav=zh-ts-3-4-0  文档中的方法,按照方法中的格式...

来源: Laya_社区 发布时间: 20181210

367. unity 1.7.13.3插件(unity版本5.6.3、2017.1)+1.7.13库,载入lh文件报错 [ 46%]

...是不行。。。。。醉了 Uncaught TypeError: Cannot read property 'owner' of null at AnimationTransform3D.__proto._setLocalRotation (laya.d3.js:17222) at Array.AnimationNode._setLocalRotation (laya.d3.js:340) at Animator.__proto._onAnimationStop (laya.d3.js:22674) at Animator.__proto._updatePl...

来源: Laya_社区 发布时间: 20180115

368. 添加或修改物理ChainCollider属性points时,报错 [ 45%]

...s._started) { this._started = true; this.enabled = true; } var ground=this.owner.getChildByName("ground"); ground.addComponent(Laya.ChainCollider); this._chains=ground.getComponent(Laya.ChainCollider); } 静观 • 2018-11-29 14:37 报错内容: at Object.box2d.b2Assert (file:///E:/Devel...

来源: Laya_社区 发布时间: 20181128

369. 微信小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

来源: Laya3.0_文档 发布时间: 20251010

370. 视频节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { let video = new Laya.VideoNode; //添加到舞...

来源: Laya3.0_文档 发布时间: 20251010