added: new Color.Alpha extension method
This commit is contained in:
@@ -13,4 +13,7 @@ public static class MathExtensions{
|
|||||||
return (to - origin).normalized;
|
return (to - origin).normalized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static Color Alpha(this Color input, float newAlpha){
|
||||||
|
return new Color(input.r, input.g, input.b, newAlpha);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user