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

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

1. 加载-销毁Texture使用的图片资源 [ 100%]

...onMouseUp(evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; this.isDestroyed = false; this.txt.text = "销毁"; } else { //通过设置 visible=false ,来停止渲染对象 this.sp...

来源: Laya2.0_示例 发布时间: 20241001

2. UI-RefreshList [ 82%]

...moveLimit; } //帧听达到限制的事件,达到限制条件的时候再触发停止滚动的接口 this.refreshList.scrollBar.on(eventName, this, () => { console.log("达到了滚动限制:" + eventName); //显示加载进度ui this.refreshLoading.visible = true; //处理加载ui的位置 if (ev...

来源: Laya2.0_示例 发布时间: 20241001