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

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

61. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 73%]

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

62. drawcall优化问题 [ 73%]

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

63. 微信小游戏在真机上网络动态加载资源的问题 [ 72%]

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

64. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 72%]

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

65. 显存优化:纹理压缩的使用(TypeScript-2D进阶篇(TS)-性能优化) [ 72%]

...eFile; })); ``` #### 3、2D图集的使用 对于2D图集,预加载图集atlas文件即可,由于进行纹理压缩转换的时候,会自动在图集atlas中添加纹理压缩文件信息,所以引擎在加载图集的时候,会检测是否包含了纹理压缩转换的信息,如果包...

来源: Laya2.0_文档 发布时间: 20210714

66. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 72%]

...//加载图集成功后,执行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

67. 滤镜的集中实现 [ 71%]

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

68. 加载UI为什么总是加载白底 [ 71%]

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

69. 【vivo】2d图集加载不上 [ 71%]

...上 Laya.loader.load(url,Handler.create(this,onLoadComplete),null,Loader.ATLAS); 用Loader.ATLAS图集类型加载失败 附件 : --> myLaya.zip 2019-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 陆仁毅 ...

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

70. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 71%]

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