大约有 134 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0038 秒)
Laya_社区(98) Laya2.0_文档(19) Laya3.0_文档(11) Laya3.0_api(2) Laya2.0_api(2) Laya2.0_示例(1) Laya_示例(1)
... ```typescript private init():void { //加载场景 Laya.loader.load('res/atlas/comp.atlas',Laya.Handler.create(this,this.onComplete)); } private onComplete():void{ //获取图集中的一个单图 var a = Laya.loader.getRes('comp/button.png') as Laya.Texture; //通过单图的bitmap对图集加锁 ...
来源: Laya2.0_文档 发布时间: 20210715
...1094 关注: 5 人 jacksing888 • 2018-01-22 23:37 Laya.loader.load( 'res/atlas/comp.json', Handler.create(this, function(){ container = new Laya.Sprite(); var x = 0,y =80; Laya.stage.addChild(container); for(var i=0;i<1200;i++){ var role = new Laya.Sprite(); x = x+0.1; y = y+0.1 role.x = x; rol...
来源: Laya_社区 发布时间: 20180122
...Path = Laya.URL.basePath = ""; //加载图集 Laya.loader.load([ {url:"res/atlas/comp.atlas", type: Laya.Loader.ATLAS}, ], new Laya.Handler(this, this.onLoad)); 版本是1.7.19 2018-09-21 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180921
...建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/clip_tree_arrow.png...
来源: Laya3.0_文档 发布时间: 20230828
...eFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在加载图集的时候,会检测是否包含了纹理压缩转换的信息,如果包...
来源: Laya2.0_文档 发布时间: 20210714
...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处...
来源: Laya2.0_文档 发布时间: 20210714
...景色 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
...色s Laya.stage.bgColor = "#ffffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ var _start = new start(); Laya.stage.addChild(_start); } })(); var start = (function(_super){ function start(){ start.super...
来源: Laya_社区 发布时间: 20181220
...上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 陆仁毅 ...
来源: Laya_社区 发布时间: 20191106
...口 Laya.init(400, 400, Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry(); Test.ts import Sprite = Laya.Sprite; cla...
来源: Laya_社区 发布时间: 20180308