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

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

201. Laya.Animator 无法通过on监听 [ 69%]

Laya.Animator 无法通过on监听 ani.on(Laya.Event.COMPLETE,this,this.onAniComplete,[ani]); 报错 无法类型"Animator" 上不存在属性"on",现在无法通过on监听了么,请问现在要如何监听动画播放完毕 2019-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

202. 自定义控件能否放在任意目录 [ 69%]

...Manager.getWorkPath("laya/custom"); console.log("customUI:",uiConfigPath); this.initCustomUIConfig(uiConfigPath,false); 也就是把教程的里的东西搬到 自己的项目路径/laya/custom 下 2018-05-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

203. 侦听加速器运动在ios手机下无法监听 [ 69%]

...ios手机下无法监听 Laya.Accelerator.instance.on(Laya.Event.CHANGE, this, this.monitorAccelerator); 在android手机中是没有问题的,在ios手机无法监听这个事件 附件 : --> 2020-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

204. drawToCanvas无法截取到有子元素。 [ 69%]

...ite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas = htmlCanvas.getCanvas(); trace(canvas.toDataURL('image/png')); const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.g...

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

205. 微信排行榜组件内存泄漏 [ 69%]

...: 1562299196用户 打开bin/laya.ui.js找到function WXOpenDataViewer把this.texture的实例化放到onEnable里面,在onDisable加一句this.texture.bitmap.destroy();   2019-07-10 1 0 分享 微博 QZONE 微信 1562299196用户 赞同来自: 请问下怎么解决的 2019-07-10 0 0 分享 微...

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

206. 3D模型无法用Tween类吗 [ 69%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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

207. 一个场景中加两个线形碰撞体出错 [ 69%]

...   _setShape(false);             }             this.label = (this.label || "ChainCollider");             return super.getDef();         }   改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题...

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

208. laya2.0微信开发域无法显示 [ 68%]

...讨论,修改了laya.core.js里面 value && (value._addReference(this._referenceCount)); =》 if(value && value._addReference){ value._addReference(this._referenceCount) }   又报:this._bitmap._addReference is not a function 同上依次改之。   不报错之后,开发域...

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

209. 请教一个最基本问题: 在项目代码中如何操作场景编辑器中设置的组件? [ 68%]

...用呢?   我已经设置了button的Var 为bt1,在项目代码中写 this.bt1,会提示没有bt1   我在场景编辑器中按f12导出,在项目代码中写 this.bt1,还是会提示没有bt1。我下载了微信飞机ts版本,看了下人家的项目代码里输入this.bg1是完全...

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

210. VBOX动态增加的元素没有自动布局 [ 68%]

...印显示btn1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=new ui.test.view_btnUI(); var btn2_btn:laya.ui.Button=btn2.getChildByName("btn") as laya.ui.Button; // btn2_btn.label="second"; this.myvbox.addChild(btn2); var btn3=new ui.test.view_btnUI(...

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