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

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

451. timeline播放完成Bug [ 62%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

452. VBOX动态增加的元素没有自动布局 [ 61%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里...

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

453. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

454. 鼠标穿透问题 [ 61%]

...e { import laya.display.Sprite; import laya.display.Stage; import laya.net.Loader; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class Bootstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:...

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

455. 关于大量图片加载绘制后的内存暴增的疑问 [ 61%]

...加载 之后逐个绘制在界面上。 实现很简单,我通过Laya.loader.load预加载把302个图片资源加入到内存中,然后通过getRes 和 drawTexture 添加SPRITE对象到屏幕中。 预加载后的初始内存为29M左右 之后开始逐个添加SPRITE,在添加第1个到第8...

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

456. 关于热更新和网页缓存的疑问 [ 61%]

...ion 的createFrames 使用已经加载的图集缓存动画失败 请问下loader如何强制加载一个文件,避免浏览器的缓存 发布H5后通过网页打开出现左上角的那个图标是什么东东 怎么去掉 我刚开始使用layabox,发布了一个h5,但是手机上应该怎...

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

457. 进行预加载,每次进入游戏都会重新加载一次 [ 61%]

...ang + "/shz_nav.png"。。。。。。。】 用这个进行预加载 Laya.loader.load(images, null, Laya.Handler.create(this, onImagesProgress, null, false), Laya.Loader.IMAGE); 但是每次进入都会重新慢慢在加载一次 声音也是一样 2017-02-16 添加评论 免费帖 --> 分享 微...

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

458. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 61%]

...内容相关的链接 提交 1 个回复 ssqhu 赞同来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     ...

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

459. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 61%]

...nction LoadRes() { var resArray = [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResCompl...

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

460. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 61%]

...近做到这一块,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.bo...

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