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

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

271. dialog的popup方法不会关闭其他弹窗 [ 95%]

...xtends ui.loginUI { normalDialog: NormalDialog; constructor() { super();  this.btn_signin.on(Laya.Event.CLICK, null, () => { this.showDialog("登录成功") }); this.btn_register.on(Laya.Event.CLICK, null, () => { this.showDialog("注册功能暂未开放") });  }  showDialog(context: strin...

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

272. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 95%]

...在IOS上百分百出现绘制不完全的BUG:如下图     update() { this.updatePowerProgressTest(); } //更新蓄力进度圈 updatePowerProgressTest() { //是否为增加进度条 if (this.isIncPower) { //蓄力速度 this.currentPower += 5; if (this.currentPower >= this.powerTotal) { thi...

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

273. 在wx.request的success回调中写的this,发布后this没有改变为_this(但是fail里面的就自动变了)导致错误!!! [ 95%]

在wx.request的success回调中写的this,发布后this没有改变为_this(但是fail里面的就自动变了)导致错误!!! 求高手告知是否是IDE的BUG,还是代码写的有问题,谢谢啦 附件 : --> 2018-07-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

274. 手机调试时http请求错误,返回Request failed Status:0 [ 95%]

...new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR, this, (e...

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

275. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 95%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/...

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

276. 自定义对话框设置zOrder后,关闭时报错 [ 95%]

... CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBar", ...

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

277. 2.6.1物理bug [ 95%]

...力的数值,球和地面都设置了弹力   TestScript2  onAwake   this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...

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

278. 其他引擎的Demo-Example_04 [ 95%]

... Browser.width; private h:number = Browser.height; private slideX:number = this.w / 2; private slideY:number = this.h / 2; private speedInfo:Text; constructor() { Laya.init(this.w, this.h, WebGL); this.createText(); this.start(); } private start():void { for (var i:number = 0; i this.w) { this.stars...

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

279. 照相机-3D空间转2D空间 [ 95%]

...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2D = Laya.stage.addChild(new Laya.Image("../../res/threeDimen...

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

280. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 95%]

...手引导的抠图透明区域为黑色,其它机型都是正常的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea:...

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