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

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

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

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

92. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 66%]

...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation():void { var url:Array=; for(var i:int=1;i<30;i++) { if(i<10) { url.push("res/fighter/fighter/rollSequence000"+i+".png"); } else { url.push("res/fighter/fighter/rollSequence00"...

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

93. 加载时间轴动画报错 [ 66%]

...画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '...

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

94. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 66%]

...工程做的测试,加上MiniAdapter.init();然后本地缓存不支持.atlas文件,我就改成加载json文件,所有的改动就这些。   因为Laya文档里面没有找到QQ小游戏的指引,又看到QQ小游戏文档里面写的微信小游戏项目可以直接在QQ小游戏环境...

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

95. 预加载结束之后还是报lose skin [ 66%]

...之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetL...

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

96. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 66%]

...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

97. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 65%]

...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...

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

98. 无法使用LayaIDE打包图集 [ 64%]

...Error: Command failed: "D:\LayaAir\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator" --maxAtlasWidth=2048 --maxAtlasHeight=2048 --tileWidthLimit=512 --tileHeightLimit=512 "D:\LayaAir\myLaya\laya\assets\comp\paoma" --outputDir="D:\LayaAir\myLaya\bin\res\atlas" --force -c 附件 : --> 2017-04-25...

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

99. 这样的panel请问如何实现比较好? [ 64%]

...; Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 ...

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

100. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 63%]

...于2D图集,需要说明一下,我们只支持LayaAirIDE自己生成的atlas图集纹理压缩。第三方的图集,我们并不支持。 LayaAirIDE生成的图集,我们可以在图片路径那一栏,拖入.png后缀图片或.atlas图集文件,都可以被识别,然后压缩成功的...

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