Advertisement
Pro_Unit

CombineGraphics

Sep 14th, 2022
766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | None | 0 0
  1. using System.Collections.Generic;
  2. using UnityEngine;
  3. using UnityEngine.UI;
  4.  
  5. [RequireComponent(typeof(CanvasRenderer))]
  6. public class CombineGraphics : Graphic
  7. {
  8.     [SerializeField] private List<Graphic> _graphics;
  9.     public override void CrossFadeColor(Color targetColor, float duration, bool ignoreTimeScale, bool useAlpha, bool useRGB)
  10.     {
  11.         foreach (Graphic graphic in _graphics)
  12.             graphic.CrossFadeColor(targetColor, duration, ignoreTimeScale, useAlpha, useRGB);
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement