asset integration 50%

This commit is contained in:
2026-03-29 02:27:55 +05:30
parent 3108262326
commit b8ce9120d5
1691 changed files with 1192616 additions and 262 deletions
@@ -0,0 +1,31 @@
using UnityEngine;
public class CanvasGroupUtils : MonoBehaviour
{
public UnityEngine.UI.Graphic[] graphics;
public bool useOverrideColor = false;
public Color overrideColor = Color.white;
void OnValidate()
{
RefreshColor();
}
void Update()
{
RefreshColor();
}
void RefreshColor(){
if(useOverrideColor)
{
foreach(var graphic in graphics)
{
graphic.color = new Color(overrideColor.r, overrideColor.g, overrideColor.b, overrideColor.a);
}
}
}
}