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

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

231. 打包了一个图集,怎么使用此图集中的某一张图片 [ 68%]

...用此图集中的某一张图片 打包好一个图集 使用    Laya.loader.load("res/atlas/yaosai.atlas", Handler.create(this, onLoaded));  加载后,怎么使用此图集里面的 其中一张图片呢 求大佬解答 2018-07-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

232. 缓存清除方法clearTextureRes [ 68%]

缓存清除方法clearTextureRes    Loader.clearTextureRes=function(url){             url=URL.formatURL(url);             var arr=laya.net.Loader.getAtlas(url);             var res=arr ? laya.net.Loader.getRes(arr[0]):laya.net.Loader.getRes(url);       ...

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

233. [临时解决]bug?加载sk问题 [ 67%]

...是加载sk完成前,就调用动画导致 因此,在最开始用Laya.loader.Load(["drgon.sk"]......)这样的方式预加载 !!!结果,预加载时报错,就是这里: laya.core.js的7430行    if (this._pos_+2 > this._length)throw "getUint16 error - Out of bounds"; 但是,...

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

234. ui.TestPUI() 找不到 [ 67%]

...I() 找不到   Laya.init(1334,750); Laya.stage.bgColor = "#ffffff"; Laya.loader.load("./res/atlas/blackMagic.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ var efc =new ui.TestPUI(); Laya.stage.addChild(efc); } //new ui.TestPUI(); 这个东西找不到。我是按照官方文档...

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

235. 更新到1.7.6beta之后,HBox有bug [ 67%]

... 分享 微博 QZONE 微信 lusky 赞同来自: Laya.init(1200, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var sk...

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

236. 自动图集配置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...在构建发布配置项里手动添加为始终包含的资源目录 Laya.loader.load("resources/aaa/test.atlas").then(() => {//更多资源加载方式,可查看《资源加载》文档 this.owner.skin = "resources/aaa/image.png"; //将图集路径+名称视为小图的资源目录,小图...

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

237. 小白求助,关于时间轴动画如何设置播放一次后消失? [ 67%]

...白求助,关于时间轴动画如何设置播放一次后消失? Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { var tl = new Laya.Animation(); tl.loadAnimation("democesi.ani"); Laya.stage.addChild(tl); tl.play(); tl.pos(302,650); } 2018-01-1...

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

238. Laya IDE横竖屏切换时,不断刷新 [ 67%]

...a.stage.scaleMode = 'exactfit'; Laya.stage.screenMode = 'horizontal'; Laya.loader.load(['res/atlas/view.atlas'], Handler.create(this, initGame)); Laya.timer.frameOnce(1, this, function () { Laya.stage.on(Event.RESIZE, this, function () { window.location.reload(); }) }) 2018-04-16 添加评论 免费...

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

239. 发现TimeLine的一些问题,像是BUG [ 67%]

...ge { import laya.display.Sprite; import laya.events.Event; import laya.net.Loader; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Stat; import laya.utils.TimeLine; public class AirDemo { private var sp1:Sprite; private var sp2:Sprite; private var sp3:Sprite; private var timeLin...

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

240. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 67%]

...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...

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