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

大约有 24 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)

11. replaceSlotSkinName对于spine换肤不成功 [ 63%]

...没有更换,用的是spine官方的goblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.CO...

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

12. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...建完毕,此方法只执行一次 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_文档 发布时间: 20251010

13. laya.net.Loader [ 60%]

...(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader  getRes(url:String):*[static] 获取指定资源地址的资源。 Loader  getTypeFromUrl(url:String):String[static] 获取指定资...

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

14. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...dth >> 1, Laya.stage.height >> 1); // 位置 this.clip.skin = "atlas/comp/clip_num.png"; // 皮肤 this.clip.interval = 1000; // 切片动画的播放时间间隔1000毫秒 this.clip.clipX = 10; // 切片x轴数量 this.clip.autoPlay = true; // 动画自动播放 } } 二、通过代码...

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

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

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

16. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

... onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn.labelSize = 20; //文本标签字体大小 this.btn.l...

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

17. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 59%]

...//加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择...

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

18. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...行 this.txtin.overflow = "scroll"; //文本溢出 // this.txtin.skin = "atlas/comp/textinput.png"; //皮肤 this.txtin.bgColor = "#19a4f1"; //背景颜色 this.txtin.borderColor = "#f6ff03" //边框颜色 this.txtin.editable = true; //可编辑状态 // this.txtin.type = "password"; //输入框类...

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

19. laya.net.LoaderManager [ 56%]

...源是否已经加载完毕。 注意:cache参数只能对文件后缀为atlas的资源进行缓存控制,其他资源会忽略缓存,强制重新加载。 LoaderManager  decodeBitmaps(urls:Array):void 解码Texture或者图集 LoaderManager event(type:String, data:* = null):Boolean 派发...

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

20. laya.net.Loader_API3.0 [ 54%]

...ructors constructor Properties maxLoader retryDelay retryNum ANIMATIONCLIP ATLAS BUFFER FONT HIERARCHY IMAGE JSON MATERIAL MESH SOUND SPINE TERRAINHEIGHTDATA TERRAINRES TEXT TEXTURE2D TEXTURECUBE TTF VIDEO XML downloader extMap groupMap loadedMap preLoadedMap typeMap Accessors loading Methods cacheR...

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