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

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

681. dialog如果在close动画播放完毕后删除 [ 58%]

...同来自: ethan 抱歉,今天回复的有问题,你直接监听closeHandler即可,这个函数会再dialog的clsoe动画播放完成后回调 private function onClick():void { dialog.closeHandler=Handler.create(this,onClosed); } private function onClosed():void { trace("close"); } 2017-07-03 ...

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

682. 图片设置mask有毛边 [ 58%]

...loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask);       附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

683. ComboBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 58%]

...tage; import laya.display.Text; import laya.ui.ComboBox; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_ComboBox { /***下边列表美术资源**/ private var skin:String = "../../../../res/ui/combobox.png"; /***下拉列表**/ private var comboBox:ComboBox /***提示信息文...

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

684. Loader.BUFFER的问题 [ 58%]

...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true)   private configLoaded(url):void {     var data:Object = Laya.loader.getRes(url);     console.log(data)     var e = new Zlib.Inf...

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

685. 微信小游戏中如何加载XML文件? [ 58%]

...如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 免费帖 --> 分享 ...

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

686. load 粒子的时候永远出错 [ 58%]

... res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya.Loader.JSON);   我再bin/res/rotate.part是存在的 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

687. Image 动态替换图片后变小了 [ 58%]

...url:"map/157.jpg", type:Loader.IMAGE});      Laya.loader.load(assets, Handler.create(this, loadMapBGComplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test.source = tx;      }  我这张图是913X1400...

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

688. 怎么将图片转换成base64格式 [ 58%]

...64格式 如题。一直转换没成功。 Laya.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

689. unity里导出的骨骼动画无法读取 [ 58%]

...下有没有错误   读取代码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya....

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

690. 缓动动画运行一段时间后失效 [ 58%]

...             Laya.Ease.bounceOut,             Laya.Handler.create(this, this.beUpgrade)         );}使用上面代码对龙骨每2000毫秒做scale缓动动画,挂机一段时间,动画没反应了,龙骨是scale之后的状态。 2020-07-16 添加评论 免费...

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