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

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

91. 精灵 · LayaAir3.0文档 · LAYABOX [ 67%]

...毕,此方法只执行一次 */ 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

92. socket.sent [ 67%]

... 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

93. 多行输入文本组件 · LayaAir3.0文档 · LAYABOX [ 67%]

...行 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

94. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 66%]

...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

95. 加载时间轴动画报错 [ 66%]

...画报错 代码如下: 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

96. QQ小游戏开发者工具环境下,已经被本地缓存的图片的加载回调不触发的问题 [ 66%]

...工程做的测试,加上MiniAdapter.init();然后本地缓存不支持.atlas文件,我就改成加载json文件,所有的改动就这些。   因为Laya文档里面没有找到QQ小游戏的指引,又看到QQ小游戏文档里面写的微信小游戏项目可以直接在QQ小游戏环境...

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

97. 预加载结束之后还是报lose skin [ 66%]

...之后还是报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

98. 范例里。已经预加载资源,但是调试里面无法显示出资源。 [ 66%]

...件需要指定资源类型,例如:Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); q8196901 • 2017-10-25 17:07 可以了 ,谢谢

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

99. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 65%]

...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

100. 无法使用LayaIDE打包图集 [ 64%]

...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