Documentation

Unity Engine

Unity Engine

GetInheritedAlpha()

Get the final inherited alpha calculated by including all the parent alphas from included parent CanvasGroups.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public float GetInheritedAlpha()

Returns

Type

Description

floatThe calculated inherited alpha.

Remarks

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