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

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

711. laya的animation如何每一帧的去获取回调 [ 70%]

...你的意思,你可以直接给ani监听一个加载完成事件,Event.loaded,在loaded下启动timer及时器frameloop,在loop的回调里去获取ani正在播放的索引,针对索引做判断操作

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

712. Laya.Loader.getRes请教 [ 70%]

UI相关问题 Laya.Loader.getRes请教 Laya.loader.load("res/atlas/games/game_13/image.atlas", Handler.create(this, this.createView)); 在createView回调里面调用 let tex: Texture = Laya.Loader.getRes("image/shake_01.png"); 想拿图集中的某一张图片。发现拿不到这张图片。 但...

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

713. 资源加载清除问题 [ 70%]

资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...

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

714. swf转换工具问题 [ 70%]

... 我用工具转换附件的swf后,打开swf没有东西,用代码也load不出来,麻烦答疑,谢谢了。   附件 : --> levelup.rar 2018-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 qian 赞...

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

715. 提交一个MovieClip的BUG [ 70%]

...= new MovieClip(); ani_border.pivotY = ani_border.pivotX = 245; ani_border.load("swf/planet/border.swf",true); addChild(ani_border); 2018-05-29 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 苍蝇也是鸟 赞同...

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

716. Image加载完成后的图片大小重设问题 [ 70%]

...init();     }     public init ():void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete));         Laya.stage.on(Laya.Event.RESIZE,this,this.onResize);     }     onComplete():void     {         this...

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

717. UI-Tab [ 70%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skins, Handler.create(this, this.onSkinLoaded)); } onSkinLoaded() { let tabA = this.createTab(skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; let tabB =this. createTab(skins[1]); tabB.p...

来源: Laya2.0_示例 发布时间: 20241001

718. Sprite-切换纹理 [ 70%]

...tage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.flag = true; Laya.loader.load([monkey1Str, monkey2Str], Laya.Handler.create(this, this.onAssetsLoaded)); } onAssetsLoaded() { monkey1Res = Laya.loader.getRes(monkey1Str), monkey2Res = Laya.loader.getRes(monkey2Str); this.ape = new Laya.Sprite(...

来源: Laya2.0_示例 发布时间: 20241001

719. 分享:LayaAir下如何加载和使用.JSON文件! [ 70%]

...:LayaAir下如何加载和使用.JSON文件! package { import laya.net.Loader; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(500,400); Laya.loader.load("unpack.json",Handler.create(this,onLoaded),null,Loader.JSON); } private function onLoaded():v...

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

720. 关于ASTC使用问题和建议 [ 70%]

...mg.texture = "ui/guide01.png"; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{   this.img.texture = tex; }));   但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理         Laya.loader.load("ui/guide01.ktx", La...

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