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

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

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

...满的情况下在下一行输入。 ```java package { import laya.display.Stage; import laya.ui.TextInput; public class TextInput_Example { public function TextInput_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景...

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

932. 官方新手游戏引导示例中关于hit和unHit的使用疑问 [ 80%]

...感觉用反了。hitArea = new HitArea(); hitArea.hit.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.hitArea = hitArea; guideContainer.mouseEnabled = true; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000");我的理解是给父...

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

933. showAll模式下无法居中对齐 [ 80%]

showAll模式下无法居中对齐 设置Stage.SCALE_SHOWALL 模式后,无法集中对齐,已经设置 Laya.stage.alignH = Stage.ALIGN_CENTER;了。但是还是无法集中对齐 2017-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

934. laya.utils.PerfHUD [ 80%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

935. 点击过快问题 [ 80%]

... cuixueying 赞同来自: zjw917329684 参考下下面的写法吧: Laya.stage.once(Event.CLICK,this,onClick); } private function onClick():void { trace("aaa"); Laya.stage.off(Event.CLICK,this,onClick); Laya.timer.once(500,this,onLoop); } private function onLoop():void { Laya.stage.once(Event.CLIC...

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

936. alignV 不垂直居中,还是现实在顶部 [ 80%]

...顶部 初始化时,如下设置之后,垂直居中没有生效 Laya.stage.scaleMode ="fixedwidth"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; 2018-07-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

937. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 80%]

...LayaUISample { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(s...

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

938. 位图文本怎么做渐变消隐动画? [ 80%]

...font = font;         txt.leading = 5;         txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1);         txt.alpha = 0.1;         Laya.stage.addChild(txt);     } 我这测试是可以的 2019-05-15 0 0 分享 微博 QZONE ...

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

939. 微信小游戏 舞台如何水平对齐? [ 80%]

...小游戏 舞台如何水平对齐? Laya.init(1080, 1920, WebGL); Laya.stage.alignH = "center"; Laya.stage.scaleMode = Stage.SCALE_FIXED_AUTO;使用如上代码  将分辨率改为900*1440后  舞台居左对齐  而不是居中     附件 : --> 2018-05-24 添加评论 免费帖 --> 分享 ...

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

940. 为何对sp的监听事件没有反应呢? [ 80%]

...100,"#ffffff"); xxx.size(100, 100); xxx.mouseEnabled = true; xxx.x = (Laya.stage.width - xxx.width) / 2; xxx.y = (Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() {    console.debug("Hello"); } 2017-06-06 添加评论 免费...

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