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

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

481. 文本align="center", 对齐方式无效,无论设置什么值,都是左对齐 [ 56%]

....pivotX = txtCountDown.width/2; txtCountDown.align = "right"; txtCountDown.pos(this.rankSprite2.width / 2, 483); 2018-05-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 yung 赞同来自: 小仙男 没有设置...

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

482. Sprite.loadImage();问题 [ 56%]

...       this.height = texture.height;                 this.pos((Laya.stage.width - this.width)/2, (Laya.stage.height - this.height)/2);             }         } 2017-10-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

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

483. laya.ui.Panel [ 56%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...

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

484. 获取Sprite位置问题 [ 56%]

...画大小区域 var bound:Laya.Rectangle = this.body.getBounds();  //this.pos(100,0); console.log(-bound.width/2 + " --- "+ -bound.height/2); }  onPlayComplete():void{  } } 请问为啥bound.width bound.heigh这是0? 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

485. 发布微信小游戏提示一个错误CompressJS Fail,是什么问题? [ 56%]

...ge":"Unexpected token: name (slsIndex)","filename":"0","line":924,"col":9,"pos":23180}并提示 发布成功! 2020-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 ...

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

486. 透明区域点击问题 [ 56%]

...(); sprite0.graphics.drawTexture(Loader.getRes("comp/image.png")); sprite0.pos(10, 10); sprite0.mouseEnabled = true; sprite0.name = 'sprite0'; Laya.stage.addChild(sprite0); sprite0.on(Event.CLICK, this, handler_click); 怎么让sp透明区域不可点,有像素的地方才能接受到事件; hitAr...

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

487. 射线检测-放置物体 [ 56%]

...oadUI() { var label = new Laya.Label(); label.text = "点击放置"; label.pos(Laya.Browser.clientWidth / 2.5, 100); label.fontSize = 50; label.color = "#40FF40"; Laya.stage.addChild(label); var _position = new Laya.Vector3(0, 0, 0); var _offset = new Laya.Vector3(0, 0.25, 0); //鼠标事件 Laya.st...

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

488. 遮罩出现黑边! [ 55%]

...下 var mask:Image = new Image(); mask.skin = "res/atlas/遮罩.png" mask.pos(0,0); _cloudSP.mask = mask; 附件 : --> 2017-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 问题应该...

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

489. 关于button的destroy不起作用的问题 [ 55%]

...0; dialogButton.width = 80; dialogButton.name = Dialog.CLOSE; dialogButton.pos(20,clientHeight*0.2-dialogButton.height-20); dialogButton.labelColors = "#7FFFD4,#A52A2A,#0000FF,#F0F8FF"; dialog.addChild(dialogButton);上面的方法新建了一个按钮在dialog里面,文本翻页之后我想删掉...

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

490. 3d中 在update里对局部坐标赋值,当父物体运动起来就会有问题 [ 55%]

...aya.RenderState): void { super._lateUpdate(state); this.gun.transform.localPosition=this.pos; } 2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 用clone(),如果直接赋值...

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