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

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

81. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 80%]

...ect(): void {         Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showE...

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

82. 导出到微信小游戏资源加载失败回调不执行 [ 79%]

...片)没有调用回调。 查看MiniFileMgr.as发现仅当statusCode为200时才会触发回调,源码如下 public static function downFiles(fileUrl:String, encoding:String = "ascii", callBack:Handler = null, readyUrl:String = "",isSaveFile:Boolean = false,fileType:String = "",isAutoClear:Boole...

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

83. 滤镜的集中实现 [ 79%]

...舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(200,50); //红色滤镜 creteRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴影滤镜位图 createShadeFilter(); //创建糊滤滤镜位图 createBlurFilter();           /**创建位图方法**/ ...

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

84. graphics 问题 [ 79%]

...ranslate(100,100); sp.graphics.transform(matrix); sp.graphics.drawRect(0,0,200,100,"#FF0000"); sp.graphics.restore(); Laya.stage.addChild(sp);我测试没有问题,可以把你详细的代码发下,我们看下! 2017-06-09 0 0 分享 微博 QZONE 微信 raytrace 赞同来自: (function() { var...

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

85. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 79%]

...{ ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.clear(); ape.loadImage(t...

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

86. 如何监听移动端软键盘的弹出和收回? [ 79%]

...r=true; textInput.multiline=true; textInput.wordWrap=true; textInput.width=200; textInput.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):...

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

87. 加载atlas如果碎图特别多会占用大量内存 这个如何避免 [ 79%]

...集 这样加载atlas后 会产生大量的切图数据 一个主角接近200M内存。。。 内存飙升 请问这个如何避免 2018-02-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 lifereset 赞同来自:...

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

88. spine动画导出问题 [ 79%]

...@qian:你们这个ide工具不能支持更多了嘛?为什么要限制在200呢? 139*****908 • 2018-03-05 11:45 @qian:我们这边尝试删了13个做类似粒子特效的骨骼,导出就成功了,你们这个数量限制是骨骼数量和插槽数量总和嘛? 139*****908 • 2018-02-27...

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

89. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 78%]

...his, this.onItemRender);         this.list.scrollBar.elasticBackTime = 200;         this.list.scrollBar.elasticDistance = 200;     }     open(): void     {         for(let i = 0; i< 50; i++)         {             this.test.push(i);         }         this.list.a...

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

90. 这种进度条怎么实现? [ 77%]

...Sprite export default class Test extends Sprite{ public DEF_SIZE: number = 200 public CIRCLE_WIDTH: number = 20 public $circleSprite: Sprite = new Sprite() public startY: number = -90 constructor() { super() this._init() } private _init() { this.cacheAs = "bitmap" this.size(this.DEF_SIZE,this.DEF_SI...

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