Initialer Upload neues Unity-Projekt

This commit is contained in:
Daniel Ocks
2025-07-03 11:02:29 +02:00
commit 27d6b94b7c
8167 changed files with 1116569 additions and 0 deletions

View File

@ -0,0 +1,11 @@
using UnityEngine;
using UnityEngine.UI;
public static class ImageExtensions
{
public static Image WithColorValue(this Image image, float? r = null, float? g = null, float? b = null, float? a = null)
{
image.color = new Color(r ?? image.color.r, g ?? image.color.g, b ?? image.color.b, a ?? image.color.a);
return image;
}
}