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

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

51. 打包JPG图集问题 [ 63%]

...打包,打包下面链接的图片失效,只有.rec文件(自带的comp图片可以成功) https://github.com/layabox/layaair/tree/master/samples/res/phoenix   把phoenix图片拷到设计模式的资源里面,将图片改成打包模式,进行导出时,能导出图集   这是因为...

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

52. 无法使用LayaIDE打包图集 [ 63%]

... --tileWidthLimit=512 --tileHeightLimit=512 "D:\LayaAir\myLaya\laya\assets\comp\paoma" --outputDir="D:\LayaAir\myLaya\bin\res\atlas" --force -c 附件 : --> 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

53. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 63%]

...e.on(Laya.Event.CLICK, this, this.onImgClick); Laya.loader.load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/...

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

54. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 63%]

...轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-17 添加评论 免费帖...

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

55. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...his.txtarea.overflow = "scroll"; //文本溢出 this.txtarea.skin = "atlas/comp/textarea.png"; //皮肤 this.txtarea.borderColor = "#f6ff03" //边框颜色 this.txtarea.scrollType = Laya.ScrollType.Vertical; //滚动方式 this.txtarea.vScrollBarSkin = "atlas/comp/vscroll.png"; //滚动条皮肤 } }...

来源: Laya3.0_文档 发布时间: 20251010

56. 子容器的事件问题 [ 63%]

... // 程序入口 Laya.init(800, 800); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { //实例UI界面 var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); let vhvt: ViewHeadViewTest = new ViewHeadVie...

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

57. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 63%]

...new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.panel); var img:Laya.Image = new Laya.Image(); img.skin = "res/GameBG2.jpg" this.panel.addChild(img) var img1:Laya.Image = new Laya.Image(); img1.y = 1136; img1.skin = "res/GameBG2....

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

58. JS中利用New创建出来的对象相应内存,如何主动去释放? [ 62%]

...  (function(){    Laya.init(640,1027);    Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS)})(); function onLoaded(){  var karaok = new Karaok(); // new出来的内存 如何主动销毁? } })(window.LayaSample || (window.LayaSample={})); 2017-...

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

59. 为什么加载进度回调只调用了一次。下面有代码,求解答 [ 62%]

...代码,求解答 Laya.loader.load(     // 资源     [{url:'res/atlas/comp.json',type:Laya.Loader.ATLAS}].concat(loadArr),     // 加载完成回调     Laya.Handler.create(null,function(){         var logintest = new loginTestView().init();         Laya.stage.addChild(logintest);  ...

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

60. 自己创建的box作为tab,为啥没有点击事件啊? [ 62%]

....Loader; var UI; Laya.init(600, 400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyPage2UI);     var UI = new MyBootClass();     Laya.stage.addChild(UI); } f...

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