大约有 134 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0039 秒)
Laya_社区(98) Laya2.0_文档(19) Laya3.0_文档(11) Laya3.0_api(2) Laya2.0_api(2) Laya2.0_示例(1) Laya_示例(1)
...毕,此方法只执行一次 */ onAwake(): void { this.sprite.loadImage("atlas/comp/image.png"); //纹理:图片路径 this.sprite.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置:屏幕中心 this.sprite.x = Laya.stage.width/2; //x、y分别设置位置 this.sprite.y =...
来源: Laya3.0_文档 发布时间: 20240528
... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var uiResArr =[ {url:"res/atlas/comp.atlas",type: Laya.Loader.ATLAS}, ]; Laya.loader.load (uiResArr , Laya.Handler.create(this,this.onLoded)); //加载图片 this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte...
来源: Laya_社区 发布时间: 20180210
...行 this.txtarea.overflow = "scroll"; //文本溢出 this.txtarea.skin = "atlas/comp/textarea.png"; //皮肤 this.txtarea.borderColor = "#f6ff03" //边框颜色 this.txtarea.scrollType = Laya.ScrollType.Vertical; //滚动方式 this.txtarea.vScrollBarSkin = "atlas/comp/vscroll.png"; //滚动条皮...
来源: Laya3.0_文档 发布时间: 20230629
...ader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation():void { var url:Array=; for(var i:int=1;i<30;i++) { if(i<10) { url.push("res/fighter/fighter/rollSequence000"+i+".png"); } else { url.push("res/fighter/fighter/rollSequence00"...
来源: Laya_社区 发布时间: 20160610
...画报错 代码如下: this.ani = new Laya.Animation(); this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe)); function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '...
来源: Laya_社区 发布时间: 20171028
...工程做的测试,加上MiniAdapter.init();然后本地缓存不支持.atlas文件,我就改成加载json文件,所有的改动就这些。 因为Laya文档里面没有找到QQ小游戏的指引,又看到QQ小游戏文档里面写的微信小游戏项目可以直接在QQ小游戏环境...
来源: Laya_社区 发布时间: 20191017
...之后还是报lose skin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetL...
来源: Laya_社区 发布时间: 20180314
...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢
来源: Laya_社区 发布时间: 20171025
...ion beginLoad():void { //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); } private function onLoad2():void { Laya.timer.once(2000, this, onLoaded); } private function onLoaded():void { //实例UI界面 //var testView:TestView = new TestView(); //...
来源: Laya_社区 发布时间: 20180525
...Error: Command failed: "D:\LayaAir\resources\app\out\vs\layaEditor\libs\TP\AtlasGenerator" --maxAtlasWidth=2048 --maxAtlasHeight=2048 --tileWidthLimit=512 --tileHeightLimit=512 "D:\LayaAir\myLaya\laya\assets\comp\paoma" --outputDir="D:\LayaAir\myLaya\bin\res\atlas" --force -c 附件 : --> 2017-04-25...
来源: Laya_社区 发布时间: 20170425