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

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

1. 附加脚本的使用问题 [ 100%]

...r() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner(): laya.display.Sprite {         return this._owner;     }...

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

2. [LayaAirIDE3]2d相机打包后问题 [ 99%]

...EIGHT;          // 摇杆事件监听         this.joystickScript.owner.on(Joystick.MOVE, this, (data: any) => {             this.playerScript.move(data.direction, data.force);         });          this.joystickScript.owner.on(Joystick.END, this, () => {           ...

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

3. [LayaAir3]this.owner.x 到底有没有这个属性? [ 97%]

[LayaAir3]this.owner.x 到底有没有这个属性?   ide里说是没有的,可是实际使用是有的。 2025-11-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 LayaAir大为 赞同来自: layabox this.o...

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

4. animator.owner._scene报空 [ 96%]

animator.owner._scene报空 在laya.d3.js文件中,animator.update函数中,animator.owner._scene报空,导致(animator.owner._scene).timer报错,请问这是什么原因呢?项目有点大暂时提供不了demo。 2020-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

5. 通过laya.utils.ClassUtils.createByJson创建的附加脚本不能触发owner [ 94%]

通过laya.utils.ClassUtils.createByJson创建的附加脚本不能触发owner 编辑器版本号: 1.7.19.1beta。 新建的UI F12导出后,自动生成的代码是通过this.CreateView(XXX.uiView)生成相应变量,附加脚本能正常触发owner。 但如果通过把某个UI里的一部分...

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

6. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 94%]

... onTriggerEnter(other,self,contact)     {         var n=this.owner.rotation;         if(other.label === "heng"){             console.log("角度"+this.owner.rotation);             this.owner.rotation=180-n;             console.log("角度"+...

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

7. 2.13 2d物理系统 physics 碰撞体信息的owner为null [ 93%]

2.13 2d物理系统 physics 碰撞体信息的owner为null     demo  思路是这样的 1. 没有用 力和速度 作为移动 2.用 tween 缓动到像素点 3.用script 脚本 每帧刷新 _sysPosToPhysic 4.碰撞时 会出现 碰撞体信息消失的情况 上面截图 5.劳烦官方大大看...

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

8. LayaAir IDE 1.4.0新增功能 附加(扩展)脚本的使用 [ 92%]

....display.Sprite; import laya.events.Event; public class Btn { private var _owner:Sprite; private var _isScal:Boolean; public function Btn() { trace("btn的附加类已经开始执行"); } //设置owner函数,可以直接获取到Button组件的实例 public function set owner(v:Sprite):void { _own...

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

9. Laya2D碰撞问题 [ 92%]

...; i++) { const element = Laya.RigidBody['objs'][i]; if(element) if(element.owner){ if(element.owner.getComponent(Laya.CircleCollider)){return} if(element.owner.getComponent(Laya.BoxCollider)){ element['_sysPosToPhysic'](); element.owner.getComponent(Laya.BoxCollider)['resetShape'](); element['resetC...

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

10. 移动控制。 [ 91%]

....js   下放开注释就发生错误。       //         this.owner.transform.localRotationEulerX=this.hitResult1.collider.owner.transform.localRotationEulerX;        //         this.rotation=this.owner.transform.localRotationEuler;         //     }else if(this...

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