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

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

11. .ui文件内的动画如何读取和播放? [ 64%]

...,一段是在某个按钮被点击的时候再播,一开始我尝试getChildByName后直接尝试播放就报错了,想说是不是没拿到,然后就打个log看下,果然输出了null,想问下如下的这个“moveOut”动画如何播放呢?因为我看输出的layaUI.max.all.js里...

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

12. 求教我生成的预制件和UI为什么没压缩 [ 64%]

..."isOpen":true,     "isDirectory":true,     "isAniNode":true,     "hasChild":true,     "compId":1,     "child":[ 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 5 个回复 qian 赞同来自: 什么压缩 ...

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

13. laya.ui.LayoutBox [ 63%]

...上的 Y 轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node optimizeScrollRect : Boolean 指定是否对使用了 scrollRect 的显示对象进行优化处理。默认为false(不优化)。 当值为ture时:将对此对象使用了scr...

来源: laya_api 发布时间: 20170929

14. laya.ui.Tree_API3.0 [ 60%]

...= "<root><item label='box1'><abc label='child1'/><abc label='child2'/><abc label='child3'/><abc label='child4'/><abc label='child5'/></item><item label='box2'><abc lab...

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

15. laya.ui.LayoutBox [ 58%]

...上的 Y 轴坐标信息。 Sprite name : String节点名称。Node numChildren : int[read-only] 子对象数量。 Node parent : Node[read-only] 父节点。Node pivotX : NumberX轴 轴心点的位置,单位为像素,默认为0。轴心点会影响对象位置,缩放中心,旋转中心...

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

16. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...括子节点下 searchButton(ui: Laya.Node) { for (let i = 0; i < ui.numChildren; i++) { let child = ui.getChildAt(i); if (child instanceof Laya.Button) { console.log("发现Button"); this.onButtonScaleEvent(child); } else { //查找子节点 this.searchButton(child); } } } //处理按钮缩放...

来源: Laya3.0_文档 发布时间: 20251010

17. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...个名字的子节点,通常会调用如下方法来获取子节点 getChildByName("xxx") /** * 根据子节点的名字,获取子节点对象。 * @param name 子节点的名字。 * @return 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child &a...

来源: Laya3.0_文档 发布时间: 20251010

18. 布局容器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...为这个item保留位置,显示效果就是一个空白的占位。 Min Child Size 当根据布局参数自动改变子节点的大小时,不会小于这里设置的值。例如,如果这里设置了30,并且一个节点在排列时要求宽度为10,则节点最后的宽度会被设置为...

来源: Laya3.0_文档 发布时间: 20251010

19. [LayaAirIDE3]3.3.1 UI点击区域异常,mouseThrough属性失效 [ 53%]

...he engine will no longer detect this object and will recursively check its child objects until it finds the target object or misses all objects. * When not penetrable, the node's width and height define the mouse collision area (a non-penetrable rectangular area). If the rectangular collision area d...

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

20. 安装layaair2-cmd一直失败 [ 52%]

...    at EventEmitter.emit (events.js:210:5) 31944 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 31944 verbose stack     at ChildProcess.emit (events.js:210:5) 31944 verbose stack     at maybeClos...

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