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

大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0052 秒)

1501. 普通文本中文逗号导致异常换行 [ 50%]

...(txt); txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height-txt.textHeight) / 2; zkang5 • 2022-07-11 09:49 好的,谢谢

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

1502. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 50%]

..._img, Laya.Handler.create(head_img, function () {              this.height = this.width = 77;        var cMask = new Laya.Sprite();//创建遮罩对象        var r = 38.5; //遮罩圆形半径              cMask.graphics.drawCircle(0, 0, r, "#ff0000");//画一个圆形的遮...

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

1503. 在手机QQ浏览器上,在loop循环里修改inputText的位置会使inputText不显示,在电脑上和手机内置浏览器都是正常的 [ 50%]

...1 Laya.timer.frameLoop(100, this, function () { inputText.y = Laya.Browser.height-100; }); 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 浏览器的兼容性是不同的!...

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

1504. 2.0的版本在ios下适配横竖屏有问题。 [ 50%]

...OK的,但是一转屏立马出现问题。 Laya.stage.width,Laya.stage.height立马出现问题,不能正确的获取屏幕的宽高,而且显示很奇怪。 至于demo 官方2.0实例里面的demo就能说明问题 ,附上链接 https://layaair.ldc.layabox.com/demo2/h5/demo.html?language=ch...

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

1505. laya.display.Input [ 50%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number[override] 显示对象的高度,单位为像素,默认为0。 此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请使用scale、scaleX...

来源: laya_api 发布时间: 20170929

1506. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 50%]

...rHB.pivotX = this.playerHB.width / 2; this.playerHB.pivotY = this.playerHB.height / 2; this.playerHB.y = 500; this.playerHB.txtName.text = "搞个毛啊"; // this.playerVO.name; this.addChild(this.playerHB); } private aaa():void { this.playerHB.x += this.bb; console.log( this.playerHB.x); if(this.pl...

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

1507. layaAirIDE中如何使用wx等微信基础对象,ide版本1.7.19.1beta [ 50%]

...text', text: '获取用户信息', style: { left: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16, borderRadius: 4 } }) 这种利用微信接口创建的按钮对象赋值给button 的怎么弄 __JS__('wx').createUs...

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

1508. 文字显示模糊 [ 50%]

...true;             _txt.width=300;             _txt.height=_txt.textHeight+10;             _txt.y=60;             Laya.stage.addChild(_txt); 用的字体是外加载的隶书字体 然后在电脑上显示就非常模糊,但是在pad上比较清晰,...

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

1509. Laya.Sprite loadImage 参数问题 [ 50%]

...:   loadImage(url:String, x:Number = 0, y:Number = 0, width:Number = 0, height:Number = 0, complete:Handler = null) 官方文档也是这么用的:http://ldc.layabox.com/doc/?nav=zh-ts-1-3-2 我把文档的代码完整复制到vscode里,vs code会报错。IDE F6 运行也编译报错。 2020-...

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

1510. 使用IDE制作的动画在pc模拟器播放OK在手机端不显示 [ 50%]

...nterval = 1000 / 60; // this.tl.play(); apesCtn.addChild(this.tl); apesCtn.height = 1500; apesCtn.width = 3248; this.tl.pivot(-1624,-750); }, 2019-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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