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

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

1. prefab中的组件布局属性设置后,在使用的地方无法把布局置空 [ 100%]

...,当中有一张图片,名为img。 在prefab中对img设置了topbottom属性为0,但在使用这个prefab的某个界面中,因为img使用的图片不能被拉伸,所以想在此处地方把img的topbottom重新覆盖设置为NaN。 但是img在使用它的界面内的topbottom...

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

2. 请问mask/遮罩不能使用left,top,right,bottom这几个属性吗 [ 98%]

UI相关问题 请问mask/遮罩不能使用left,top,right,bottom这几个属性吗 无论是在IDE还是在代码中,把图片设为mask后,left, top. right, bottom这些属性就无效了,大小会变成图片的默认大小 是我设置不对还是有bug呢? 那么请问遮罩如何做...

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

3. 相对布局,重新适应问题 [ 93%]

...对布局,重新适应问题 我给背景图imgBG 的 leftright  top bottom 赋值后 ,改变窗口大小, imgBG不会(按top = 0,left = 0,right=0,bottom=0) 变化,必须手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗 // this.imgBG.left = 0 ; // this.imgB...

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

4. 修改leftbottom属性,scale缩放动画就无法从中心开始缩放 [ 87%]

修改leftbottom属性,scale缩放动画就无法从中心开始缩放 修改leftbottom属性,scale缩放动画就无法从中心开始缩放 2018-05-25 添加评论 已悬赏1元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回...

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

5. 舞台的位置怎么自由设定 [ 84%]

...意一个地方要怎么设置? 源码里写死了只有 left right top bottom这几个参数进行组合 比如我想让舞台展示在距离浏览器左边100个像素这种需求。试过通过改变外套的div的位置但是舞台里的坐标就全乱了  以下是源码里对于舞台位置...

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

6. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 83%]

...在图块层的指定格子上添加Sprite吗 如题  我的tiledmap 有BottomTop两个图块层  Top层在Bottom层上方 现在想在Bottom层的某个格子上添加一个Sprite 请问 有什么方案呢   2017-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

7. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 82%]

.../自动排版 { this.StartLeft.top= this.StartLeft.top-100; this.StartLeft.bottom= this.StartLeft.bottom+100;  this.StartRight.top= this.StartRight.top-100; this.StartRight.bottom= this.StartRight.bottom+100; }  //事件注册 //开始游戏 this.StartLeft.on(Laya.Event.CLICK,null,function(){ //TO...

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

8. UI布局计算bug [ 81%]

...box,取名为:m_Parent,设置布局参数为:left、right、topbottom均为0,目的是初始化后m_Parent的宽高为720*1280。 m_Parent下放置两个box,分别取名m_Child_1跟m_Child_2,其中m_Child_1设置width为720,height为1280,m_Child_2设置布局参数为:left、r...

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

9. 关于UI编辑器的小建议 [ 81%]

...1983 赞同来自: 补充一下:就是right为0,left不填,top为0,bottom不填就会出现这种情况。left,right,topbottom都填的时候就没问题 2017-02-17 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 本周版本更新就修复你说的这些问题了,使用过程...

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

10. laya.components.Widget_API3.0 [ 80%]

...ties _extra _singleton owner runInEditor scriptPath EMPTY Accessors awaked bottom centerX centerY destroyed enabled hideFlags id left right top Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdat...

来源: Laya3.0_api 发布时间: 20231115