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

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

51. 被遮罩的对象的子显示对象再添加遮罩,子显示对象的遮罩显示不正确 [ 79%]

...t bigMask:Laya.Sprite = new Laya.Sprite(); bigMask.graphics.drawRect(0, 0, 300, 200, "#ffffff"); this.mask = bigMask; // let imgMask:Laya.Sprite = new Laya.Sprite(); imgMask.graphics.drawRect(0, 0, 100, 300, "#ffffff"); this.img.mask = imgMask; Laya.Tween.to(this.img, {x:100}, 10000).update = Laya.H...

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

52. textInput的单行输入&多行输入(ActionScript-LayaAir基础篇(AS3)-文本) [ 79%]

...的值,用于控制 textInput 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 textInput.bgColor = "#c30c30"; Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } private function Text_InputMu...

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

53. [LayaAir3]laya3.3.1 真实帧率严重BUG,希望修复 [ 79%]

...致找不到画面不稳的原因deltytime < 1000 改为 deltytime<300 let deltytime =Math.round( time - this._cacheTime); if (deltytime < 300) return; 附件 : --> LayaProjectl.zip LayaProjectl.zip 2025-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

54. timeline [ 78%]

...dLabel("wait",0).to(aa,{},2000) .addLabel("alphas", 0).to(aa, { alpha:0 }, 300, Ease.cubicOut) .addLabel("grid", 0).to(bb, { x:0 }, 300, Ease.cubicIn);aa对象的动画都正常 ,bb的动画没有走完全 2017-03-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

55. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 78%]

...示是正常的 let node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer....

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

56. 2D物理-碰撞事件与传感器 [ 78%]

...e; sensorCollider.radius = 100; sensorCollider.x = 450; sensorCollider.y = 300; for (let i = 0, len = this.count; i = []; private touching: Array = []; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable();...

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

57. 文本-自动换行 [ 78%]

...,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; //设置文本为多行文本 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; Laya.stage.addChild(txt); } })();...

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

58. 文本-自动换行 [ 78%]

...,面向AS/JS/TS开发者提供HTML5开发技术方案!"; txt.width = 300; txt.fontSize = 40; txt.color = "#ffffff"; // 设置文本是否自动换行 txt.wordWrap = true; txt.x = Laya.stage.width - txt.textWidth >> 1; txt.y = Laya.stage.height - txt.textHeight >> 1; } } new Text_Scroll();module ...

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

59. Bug:舞台的Event.RESIZE事件 [ 77%]

...ya.stage.height = 100; Laya.stage.size(200, 200); Laya.stage.setScreenSize(300, 300); 这几句代码只有后面两个才会抛出Event.RESIZE事件,设置width和height不会,这是不是BUG?还是官方特意这样的? 2016-08-05 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

60. 龙骨动画转换报错问题 [ 77%]

...7 • 2018-07-24 16:18 那个455是我图片的现在的数量,我减少到300,又会报300,所以不知道他最大值是多少啊,但是我用1.7.10的IDE转换就没有这个限制

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