From 706e53c5f7a9ea111cec01f7d864f71b90fc57b7 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 29 Jul 2025 12:33:08 -0400 Subject: [PATCH] added: new Color.Alpha extension method --- Assets/Scripts/Core/MathExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/Core/MathExtensions.cs b/Assets/Scripts/Core/MathExtensions.cs index c3c895b..279790c 100644 --- a/Assets/Scripts/Core/MathExtensions.cs +++ b/Assets/Scripts/Core/MathExtensions.cs @@ -13,4 +13,7 @@ public static class MathExtensions{ return (to - origin).normalized; } + public static Color Alpha(this Color input, float newAlpha){ + return new Color(input.r, input.g, input.b, newAlpha); + } }