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

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

61. Text 居中 搭配 Tween 显示结果有问题。 [ 65%]

...= 800; txt.height = 600; txt.align = "center"; txt.valign = "middle"; Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX:2, scaleY:2, }, 1000, Laya.Ease.elasticOut,null,1000);  画布800x600,在屏幕正中间显示一行字,通过缓动放大倍数到2倍,不改变位置,结果发现缓动把...

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

62. 用javascript如何实现游戏登录游戏前的资源加载进度,如何将图片,音乐等素材加载到界面通过加载条显示加载进度 [ 65%]

...gress.LoadProgressBinder.bindAll) this.progressUI.UIMenu.value = 0.0; Laya.stage.addChild(this.progressUI.displayObject); Laya.timer.loop(100, this, this.updataPosition); this.loadMainDatas(); } public updataPosition() { this.progressUI.setPosition(Laya.stage.width / 2, Laya.stage.height / 2); } pub...

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

63. Laya.Handler.create 加载图片回调参数问题 [ 65%]

....width, Laya.Browser.height, Laya.WebGL); var sp = new Laya.Sprite(); Laya.stage.addChild(sp); sp.loadImage("res/img/popular.png", 0, 0, 0, 0, Laya.Handler.create(this, function (a1, a2) { console.log(a1, a2); }), [100]);   为什么不能把Laya.Hander.create后面带的这个参数传到Function...

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

64. 寻路导航示例中添加Laya.PathFind组件报异常 [ 64%]

...机预览显示异常 官网示例摇一摇报错,就解决方案 修改stage的scale后,会发生异常情况 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 官方新手游戏引导示例中关于hit和unHit的使用疑问 LayaAir2D示例 Mac 2.0.0beta3 Chrome...

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

65. 发布安卓后异常 [ 64%]

..."Uncaught TypeError:Cannot set property 'y' of null"的解决方案 修改stage的scale后,会发生异常情况 重力感应 Accelerator 发布微信游戏后失效。是因为什么? 问题状态 最新活动: 2018-01-10 14:13 浏览: 708 关注: 2 人 Laya_Aaron • 2018-01-10 15:03 我这边...

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

66. 想询问下下载导致产生的临时数据垃圾解决方案 [ 64%]

...aya.MiniAdpter.AutoCacheDownFile=true var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage(a); 代码是这样的,这时候缓存(wxanewfiles)里是有这个图片文件的,但是临时文件夹下(wxafiles)也有,并且临时文件夹每次打开不能够重复利用导致...

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

67. 点击事件会导致setTimeout setInterval 延迟执行的问题 [ 64%]

...添加下面的方法, 一样会导致setInterval明显延迟执行; Laya.stage.on('click', null, function (e) { console.log.log(`click`); }); 即使我将所有的事件绑定全部注释掉频繁的点击页面也会卡住!!!!! 我在事件的处理函数中设置stopPropagation没有任何作用;...

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

68. laya图片路径问题 [ 63%]

...i = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addChild(roleAni);   这样就会报路劲错误   var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', ...

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

69. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 63%]

..." + "LayaBox</span><span>欢迎你的加入</span>" Laya.stage.addChild(div);2、获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e...

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

70. layabox打包apk后加载prefab之后使用pool创建prefab找不到create函数 [ 62%]

...Fun('prefab_' + name, obj.create,obj);               Laya.stage.addChild(prefab);             prefab.pos(100,100);         }),null,Laya.Loader.PREFAB); 如上,obj.create打包后在真机找不到此函数。 附件 : --> 2D.zip 2020-04-09 添加评论 免费...

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