# GetInheritedAlpha()

> Get the final inherited alpha calculated by including all the parent alphas from included parent CanvasGroups.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UIModule

```csharp
public float GetInheritedAlpha()
```

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The calculated inherited alpha. |

### Remarks

Alpha is calculated by getting the alpha from all parent CanvasGroups (if GetIgnoreParentGroups is false) and multiplying the original alpha.
