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

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

2521. 导出类型为文件模式时,只能是通过Laya.Scene.load的加载返回传递的参数得到视图对象么? [ 67%]

...自: 怎么实例化? Laya.loader.load("xxx.json", Laya.Handler.create(this, this.onCompleteCall), .....);   let xxx:View = ? 这里怎么实例化这个 xxx.json为视图对象? 2018-10-30 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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

2522. 微信小游戏内TextInput不能实现只输数字的功能 [ 67%]

...实现了,虽然笨了点,但还能用 let input = new Laya.TextInput(); this.addChild(input); input.width = 100; input.height = 50; input.on(Laya.Event.BLUR, this, e=>{ let str = input.text.split(''); for (let i = 0; i < str.length; i++) { let isNotNumber = true; for (let j = 0; j < 10; j+...

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

2523. [0]Clip播放丢帧以及停止动画过前的问题 [ 67%]

...播放时多调用一次_index++导致跳过第二帧。 2.已经调用过this.stop()后,又更新了this.index。导致用户在监听停止的地方修改索引会不生效。 附件 : --> 附件.docx 2021-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

2524. ui.Label经常崩掉 [ 67%]

...什么。 若这属于 Label 的BUG。麻烦作下优下。这样不判断 this._tf 是否存在就直接返回 this._tf.text 的做法很危险 附件 : --> 2017-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回...

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

2525. TiledMap加载报错 relativePath为空 [ 67%]

...eateMap("res/maps/scence1.json",new Rectangle(0,0,800, 800),Handler.create(this,onMapLoaded)); function onMapLoaded(){ console.log("地图加载完成"); }scence1.json { "height":25, "infinite":false, "layers":[ { "data":[7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 1, 1, 7, ...

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

2526. 使用Laya.loader.load加载服务上的图片资源,为什么会停顿几秒中才显示 [ 67%]

...示 Laya.loader.load("http://www.xxxxxxx.com/gold.png",Laya.Handler.create(this,this.aa)); private aa(){ let img = new Laya.Image("http://www.xxxxxxx.com/gold.png"); Laya.stage.addChild(img); } 请问下,这样写有声明不对么 ? 2018-04-18 添加评论 免费帖 --> 分享 微博 QZONE...

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

2527. laya.utils.Tween.to的第一个参数可以是个label? [ 67%]

...属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。          * @param    duration 花费的时间,单位毫秒。          * @param    ease 缓动类型,默认为匀速运动。          * @pa...

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

2528. 开关页面导致内存一直增长 [ 67%]

...  Close(): void {         IconManager.Instance().clearTexture(this.leftverticaldrawing.skin);//清理某个动态贴图的资源(clearRes方法清理png)         IconManager.Instance().clearTexture(this.rightverticaldrawing.skin);         ResMgr.ins.clearTextureImg(Win...

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

2529. 请问 LayaAir官网中有没有场景切换的例子? [ 67%]

...景与容器 跟楼上那位报错的那位差不多 他报错的原因是this后面少了名称 this.名称.removeSelf()   2018-07-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 LM20081991 相关问题 2.0一不小心删了bin目录...

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

2530. 销毁资源并释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 67%]

...el/LayaMonkey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Handler.create(this, function(mesh:Mesh):void { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function ():void { //销毁了使用了该网格的精灵 layaMonkey.destroy(); /...

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