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

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

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

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

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

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

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

来源: Laya_示例 发布时间: 20240929

3. 处理渲染物体的visible属性时,没有考虑双相机的情况,会导致动画播放状态错误 [ 92%]

处理渲染物体的visible属性时,没有考虑双相机的情况,会导致动画播放状态错误 前提,引擎为2.1.1,使用双相机,并且开启遮挡剔除,动画裁剪状态为默认状态,即渲染时才播放动画 如图,在使用双相机之后,物体只被一个相...

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

4. UI-RefreshList [ 91%]

...hLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refreshLoading.visible = false; this.baseBox.addChild(this.refreshLoading); // 加载动画 this.loadingAni = new Animation(); this.loadingAni.loadAnimation("res/ui/refreshList/ani/Refresh.ani"); this.loadingAni.pos(27, 36); this.loadingAni...

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

5. 使用clearTextureRes的时候有几个不明白的地方 [ 90%]

...然后再使用嘛? 我看了官网的例子,发现如果将 this.spBg.visible = false; this.aniFly.visible = false;  这两行代码注释掉,然后点击用cleartestureres进行销毁的时候,curMem是不会改变的,只有将那两个对象设置成false,curMem才会降下来。 因...

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

6. 列表里的元素可以播放动画[ 85%]

...f(HostData.array[index].lock){                     own.visible = false;                  }else{                     own.visible = true;                  }              }              var lock :B...

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

7. 分享一个自己做的游戏公告功能,跑马灯效果 [ 82%]

.../span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this...

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

8. 清除网页缓存 [ 76%]

...7 版本,LayaNative下面 Stat统计的sprite数量不准,误将sprite.visible=false的对像也统计进去了,网页端就没有问题 如何清除graphics绘制的矢量图 问题状态 最新活动: 2018-04-16 10:50 浏览: 1207 关注: 2 人

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

9. TimeLine标签删除失败,动效还是在播放 [ 75%]

... 就ok了 小丶kiss • 2018-12-19 21:31 结束动画 1)隐藏this.target.visible = false; 2)重置this.timeLine.reset();

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

10. 为什么会出现报错 ani not found:ufo1_down [ 75%]

...否移动到舞台外部,然后移除回收 if(role.y>1000 || !role.visible || (role.isBullet && role.y < -20)){ // 从舞台移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对象池 Laya.Pool.recover("role",role); } } ...

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