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

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

161. 分享:List相关(Item增删功能) [ 43%]

...c"; //加载界面需要的资源文件 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 listP = new ListPageUI(); Laya.stage.addChild(listP); Laya.timer.once(1000,this,onAdd);//1000毫秒后...

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

162. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 42%]

...NAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { cell.setImg(cell.dataSource); }  function onLoaded(): void {      var rankList = new Laya.List();      //rankList.scrollBa...

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

163. 报无法找到资源,未升级ide之前不报错 [ 42%]

...ame.jpg", type: Laya.Loader.IMAGE }, { url: "resources/UI/images/comp.atlas", type: Laya.Loader.ATLAS }, { url: "resources/UI/role/atlasAni2/139x.atlas", type: Laya.Loader.ATLAS }, { url: "scenes/Index.ls", type: Laya.Loader.HIERARCHY }, { url: "scenes/DsGameM...

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

164. laya.net.Loader [ 39%]

... = null):void 结束加载,处理是否缓存及派发完成事件 Event.COMPLETE 。 Loader event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher  getAtlas(url:String):Array[static] 获取指定资源地址的图集地址列表。 Loader  getRes(url:String):*[static] 获...

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

165. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...改组件属性,场景里的对象会自动同步,无需手动 node.getComponent("MeshRenderer").props.enabled = false; 2、调用节点/组件的一个方法,并返回值。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //调用MyScript...

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

166. laya.net.LoaderManager [ 34%]

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

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

167. laya.net.Loader_API3.0 [ 32%]

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

168. laya.net.LoaderManager_API3.0 [ 32%]

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

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

169. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 22%]

...:default@DoNativeStrip... after 109 ms > hvigor Finished :entry:default@CompileResource... after 857 ms > hvigor Finished :entry:default@BuildJS... after 3 ms > hvigor Finished :entry:default@CacheNativeLibs... after 20 ms > hvigor WARN: ArkTS:WARN File: /Users/HonestQiao/Documents/Laya/...

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

170. laya.ui.Tree [ 19%]

...thods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties...

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