Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Silly workaround for easy alpha scaling on the Unity Color type.
public static Color A (this Color color, float alphaScale)
return new Color (color.r, color.g, color.b, color.a * alphaScale);
// Gizmos.color = (0.3f);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.