Change transparency of UI elements.

Hi, short question: is there a way to change the default transparency-setting of UI elements? i would prefer a window in some settings options rather than writing a new script just for this purpose…

Add a " canvas group" component to your UI and change the alpha value

public float aValue = 1;
private CanvasGroup trans;
void Start()
{
trans = GetComponent<CanvasGroup>();
trans.alpha = a value;
}

// something like this, you may need to change the code though