Files
engine/docs/zh/UI/quickStart/group.mdx
鹅叔 dc1a4793ed Docs: remove playgrounds (#2689)
* fix: doc typo
2025-05-23 17:24:53 +08:00

25 lines
849 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
order: 5
title: UIGroup
type: UI
label: UI
---
通过 `UIGroup` 组件,可以继承或忽略**透明度****是否可交互**等属性。
## 编辑器使用
选中节点,在 **[检查器面板](/docs/interface/inspector)** 点击 **添加组件** 并选择 **UIGroup**,即可通过修改设置控制多个 UI 元素的透明度。
<Image src="https://mdn.alipayobjects.com/huamei_yo47yq/afts/img/A*PWGYRb7MJs4AAAAAAAAAAAAAehuCAQ/original" style={{zoom:"50%"}} />
## 属性
| 属性名 | 描述 |
| :------------------ | :------------------------ |
| `alpha` | 透明度 |
| `interactive` | 是否可交互 |
| `ignoreParentGroup` | 是否忽略上层 Group 的设置 |
> UIGroup 解决了 UI 元素的属性无法由父传递给子的问题。