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

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

251. Panel滚动条滑块位于最下方 [ 62%]

...1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new Panel(); panel.vScrollBarSkin="comp/vscroll.png"; pa...

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

252. Animation如何获取图集单帧实际宽高 [ 61%]

...机里是不一样的,咋回事? 手机: 网页: 代码: ani.loadAtlas("res/atlas/hero_"+_model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加...

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

253. 关于layaair中类的大小写规则有没有基本的说明文档 [ 61%]

...小写规则有没有基本的说明文档 比如: Laya.loader.load("res/atlas/comp.json", Laya.Handler.create(null, onLoaded), null, Laya.Loader.ATLAS); Laya.loader.load(resArray, Laya.Handler.create(null,onLoaded)); loader与handler   2017-03-16 添加评论 免费帖 --> 分享 微博 QZONE ...

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

254. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 61%]

...录下。动画中用到的资源图集位于`项目根目录/bin/h5/res/atlas/`目录下,如图28所示。 ![图28](img/28.png) (图28) ### 3.2 在项目中使用时间轴动画 在项目中使用时间轴动画主要分为三步。 第一步:加载动画所需的图集。 ```java //加载图...

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

255. 怎么在api中找到 Laya.loader.load [ 61%]

怎么在api中找到 Laya.loader.load Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,this.onloaded),null,Laya.Loader.ATLAS); 这一句,我想找一下Laya.loader.load的使用说明和使用例子,但是不知道怎么找。在api里我开了Laya。 http://layaair.ldc.layabox.c...

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

256. Dialog.show 的 showEffect参数在微信真机上的问题 [ 61%]

...信小游戏上显示一个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但...

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

257. 滤镜的集中实现 [ 61%]

...景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter()...

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

258. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 61%]

...作。代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload =...

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

259. Laya 2.0 微信白名单 nativefiles 配置 [ 61%]

...ath = "https://*************/"; Laya.MiniAdpter.nativefiles = [ "res/ui/ui.atlas", "res/ui/png.png", "prefab", 'scene', ]; }       2019-03-27 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 1...

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

260. Laya.loader.load和new Laya.Loader区别? [ 61%]

...a.Handler.create和new Laya.Handler有啥区别 layaair与layabox的区别 atlas目录下.json文件与.atlas的区别 使用Laya.loader.load缓存下来的文件还在res目录下吗?在编辑模式下怎么调用缓存下来的文件? 请问Laya.loader.load资源缓存在哪里?能不能把...

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