ColorExt.WithAlpha Method
Creates a color based on an already existing color and an alpha value.
Namespace: UltimateXR.Extensions.Unity.Render
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static Color WithAlpha(
this in Color self,
float alpha
)
Parameters
- self
- Type: Color
Color value - alpha
- Type: System.Single
Alpha value
Return Value
Type: Color
Result of combining the RGBA of the color value and alpha
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).