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

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

81. list只能显示一个图片 [ 57%]

...height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this,this.onListSelect)设置renderHandler和selectHandler, _proto.onListSelect...

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

82. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 57%]

...{ //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/...

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

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

...在移动端,Android平台的主流纹理格式是ETC(Ericsson Texture Compression),iOS平台的主流纹理格式是PVRTC(PowerVR Texture Compression)。 需要特别说明的是,ETC1是不支持透明通道的,PVRTC是支持透明通道的,尽管在ETC2的时候,补全了ETC1...

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

84. 本人想做个批量加载json文件,然后等这些文件统一加载完后回调 [ 55%]

...星 loader支持加载Arr序列加载 var altsArr:Array=[ {url:"res/atlas/comp.atlas", type:Loader.ATLAS}, {url:"bitmapFont/timeFont.fnt", type:Loader.FONT}, {url:"bg/hallroom-bg.png", type:Loader.IMAGE}, {url:"bg/hallrom.json", type:Loader.JSON}, ]; Laya.loader.load(altsArr, Handler.create(this, on...

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

85. 组件属性的代码使用 · LayaAir3.0文档 · LAYABOX [ 48%]

... { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图1-2所示: (图1-2) 1.2 3D节点的基础使用 首先,如动图1-3所示,将场景中已经添加好的3D节点Cube拖入到@property暴露的属性入口中,这...

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

86. laya.net.LoaderManager [ 48%]

...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...

来源: Laya2.0_api 发布时间: 20190513

87. laya.net.Loader_API3.0 [ 45%]

...Parameters url: string 图集地址或者texture地址,比如 "res/atlas/comp.atlas"或"hall/bg.jpg" Returns void clearUnLoaded clearUnLoaded(): void Defined in laya/net/Loader.ts:859 清理当前未完成的加载,所有未加载的内容全部停止加载。 Returns void event event(type: stri...

来源: Laya3.0_api 发布时间: 20231115

88. laya.ui.Image [ 44%]

...Methods | Events Packagelaya.uiClasspublic class ImageInheritanceImage UIComponent Sprite Node EventDispatcher ObjectSubclasses AdvImage Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.pn...

来源: Laya2.0_api 发布时间: 20190513

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

...ginLoad():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.s...

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

90. laya.net.LoaderManager_API3.0 [ 43%]

...请通过Laya.loader访问。 全部队列加载完成,会派发 Event.COMPLETE 事件;如果队列中任意一个加载失败,会派发 Event.ERROR 事件,事件回调参数值为加载出错的资源地址。 LoaderManager 类提供了以下几种功能: 多线程:默认5个加载线...

来源: Laya3.0_api 发布时间: 20231102