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

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

811. 内存不释放 [ 66%]

...r = 0,len:number = 2000;i < len;i++){ testUI = new TestUI(); Laya.stage.addChild(testUI); Laya.stage.destroyChildren(); } testUI = null; 再写个循环掉用2000次,内存涨了24M,等了很久也没有降,这是正常的吗? 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

812. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 66%]

...Ins = new Particle2D(settings);                 Laya.stage.addChild(partIns);                 // 开始发射粒子                 partIns.emitter.start(0.5);                 // 播放                 partIns.play();  ...

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

813. laya.ui.Label_API3.0 [ 66%]

...bel 的宽度。 label.height = 200;//设置 label 的高度。 Laya.stage.addChild(label);//将 label 添加到显示列表。 var passwordLabel:Label = new Label("请原谅我,我不想被人看到我心里话。");//创建一个 Label 类的实例对象 passwordLabel 。 passwordLabel.asPasswor...

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

814. 2.0字体比较小的时候,某些字显示不全 [ 66%]

...xtWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我的简单测试代码: 图片是2.0版本和1.8版本的字体显示对比。 2.0版本的ggg下面部分都被截断了。     附件 : --> 2019-06-06 添加评论 免费帖 --> 分享 微...

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

815. laya.ui.Image_API3.0 [ 66%]

...象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 Image 类的实例对象 image ,并传入它的皮肤。 image.x = 100;//设置 image 对象的属性 ...

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

816. UI组件对齐方式奇奇怪怪 [ 66%]

...ew Box(); _parent.graphics.drawRect(0, 0, 500, 500, '#ff0000'); Laya.stage.addChild(_parent); var _child = new Box(); _child.graphics.drawRect(0, 0, 50, 50, '#336699'); _child.bottom = 0 _parent.addChild(_child); 按理说 我设置了额child的bottom为0 应该是 靠底部对齐才对啊 为什...

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

817. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 66%]

...a.stage.bgColor = "#232628"; this.sp_video = new Laya.Sprite(); Laya.stage.addChild(this.sp_video);//添加到舞台 this.sp_video.pos(10,100); Laya.timer.loop(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,com...

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

818. 那个文本溢出需要滚动条怎么弄,API里面就说用Scroll接口,小白 不懂怎么弄 [ 66%]

...r = "#ffff00";this.txt.fontSize = 20;this.txt.color = "#ffffff";Laya.stage.addChild(this.txt);this.txt.on(Laya.Event.MOUSE_DOWN,this,startScrollText);}/*开始滚动文本*/function startScrollText(){this.prevX = this.txt.mouseX;this.prevY = this.txt.mouseY;Laya.stage.on(Laya.Event.MOUSE_MOVE,this,s...

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

819. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 66%]

...;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMous...

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

820. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 66%]

...ask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 能否把你的测试...

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