From e84f62d60b2b52f75d1dc3d60652cd52eca84254 Mon Sep 17 00:00:00 2001 From: pandamicro Date: Thu, 24 Feb 2022 13:16:01 +0800 Subject: [PATCH 1/3] Update ui opacity --- en/ui-system/components/editor/ui-opacity.md | 2 ++ zh/ui-system/components/editor/ui-opacity.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/en/ui-system/components/editor/ui-opacity.md b/en/ui-system/components/editor/ui-opacity.md index af59d62dc2..bad82bea47 100644 --- a/en/ui-system/components/editor/ui-opacity.md +++ b/en/ui-system/components/editor/ui-opacity.md @@ -2,6 +2,8 @@ The UIOpacity Component records a transparency modification flag for the node, which is used to influence all the render nodes inside its sub tree. Normally it's used on a non render nodes, otherwise its opacity will be multiplied with the render component's opacity. The render nodes can set transparency individually by setting the alpha channel of `color`. +Notice: this component is only functional when its root node have Canvas component or RenderRoot2D component. + The method of use is as follows: ![ui-opacity](uiopacity/ui-opacity.png) diff --git a/zh/ui-system/components/editor/ui-opacity.md b/zh/ui-system/components/editor/ui-opacity.md index c07d7afeb2..264caf76ca 100644 --- a/zh/ui-system/components/editor/ui-opacity.md +++ b/zh/ui-system/components/editor/ui-opacity.md @@ -2,6 +2,8 @@ 该组件会为节点记录一个透明度修改标识用来影响到后续的渲染节点。一般用于非渲染节点,如果作用在渲染节点上会形成透明度叠加现象。渲染节点可以通过设置 color 的 alpha 通道来设置透明度。 +注意:该组件只支持在 Canvas 组件或 RenderRoot2D 下的节点。 + 使用方法如下: ![ui-opacity](uiopacity/ui-opacity.png) From bdb12f981d11c7a39bf96ff834812901dad77381 Mon Sep 17 00:00:00 2001 From: "yufang.wu" <2435731537@qq.com> Date: Mon, 28 Feb 2022 14:46:18 +0800 Subject: [PATCH 2/3] Update zh/ui-system/components/editor/ui-opacity.md --- zh/ui-system/components/editor/ui-opacity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/ui-system/components/editor/ui-opacity.md b/zh/ui-system/components/editor/ui-opacity.md index 264caf76ca..9c0c12e596 100644 --- a/zh/ui-system/components/editor/ui-opacity.md +++ b/zh/ui-system/components/editor/ui-opacity.md @@ -2,7 +2,7 @@ 该组件会为节点记录一个透明度修改标识用来影响到后续的渲染节点。一般用于非渲染节点,如果作用在渲染节点上会形成透明度叠加现象。渲染节点可以通过设置 color 的 alpha 通道来设置透明度。 -注意:该组件只支持在 Canvas 组件或 RenderRoot2D 下的节点。 +> **注意**:该组件仅对根节点上有 Canvas 或 RenderRoot2D 组件的节点生效。 使用方法如下: From e909ee856fe9ce300d0af419fd35283953db0788 Mon Sep 17 00:00:00 2001 From: "yufang.wu" <2435731537@qq.com> Date: Mon, 28 Feb 2022 14:46:25 +0800 Subject: [PATCH 3/3] Update en/ui-system/components/editor/ui-opacity.md --- en/ui-system/components/editor/ui-opacity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/en/ui-system/components/editor/ui-opacity.md b/en/ui-system/components/editor/ui-opacity.md index bad82bea47..5d6a690c51 100644 --- a/en/ui-system/components/editor/ui-opacity.md +++ b/en/ui-system/components/editor/ui-opacity.md @@ -2,7 +2,7 @@ The UIOpacity Component records a transparency modification flag for the node, which is used to influence all the render nodes inside its sub tree. Normally it's used on a non render nodes, otherwise its opacity will be multiplied with the render component's opacity. The render nodes can set transparency individually by setting the alpha channel of `color`. -Notice: this component is only functional when its root node have Canvas component or RenderRoot2D component. +> **Note**: this component is only functional when its root node have Canvas component or RenderRoot2D component. The method of use is as follows: