// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) VRMADA, All rights reserved.
//
// --------------------------------------------------------------------------------------------------------------------
using UnityEngine;
using UnityEngine.UI;
namespace UltimateXR.Extensions.Unity.UI
{
///
/// extensions.
///
public static class GraphicExt
{
#region Public Methods
///
/// Sets the alpha value of a component.
///
/// Target component to set the alpha value of
/// New alpha value
public static void SetAlpha(this Graphic graphic, float alpha)
{
Color color = graphic.color;
color.a = alpha;
graphic.color = color;
}
#endregion
}
}