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

大约有 153 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)

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

3. 通过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

4. 预制体添加刚体后,和其它刚体碰撞后不能修改角度和位置 [ 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

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

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

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

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

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

8. 移动控制。 [ 91%]

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

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

9. RopeJoint代码动态创建 无法设置otherbody [ 89%]

...         }      onAwake() {         let rig:Laya.RigidBody=this.owner.getComponent(Laya.RigidBody);         var lala=UIcontrol.FUI.bg.getComponent(Laya.RigidBody);         this.rope=this.owner.getComponent(Laya.RopeJoint);         this.rope.otherBody=lala;         console....

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

10. CameraMoveScript.as在哪儿下载群里的有错 [ 88%]

...ublic function CameraMoveScript() { } override public function _initialize(owner:Sprite3D):void { super._initialize(owner); Laya.stage.on(Event.MOUSE_DOWN, this, mouseDown); Laya.stage.on(Event.MOUSE_UP, this, mouseUp); Laya.stage.on(Event.MOUSE_OUT, this, mouseOut); var camera:BaseCamera = owner.sc...

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