Components.Copy
Extension Method in Components
Declaration
public static Color Copy(this Color color, bool copyAlpha = true)
Description
Returns a copy of the color.
Parameters
color | The color to copy. |
copyAlpha | Whether to copy the alpha component (default=true). |
Returns
Color | A copy of the color. |
Overload
Declaration
public static void Copy(this ref Color color, Color other, bool copyAlpha = true)
Description
Sets the components of the color to match another color.
Parameters
color | The color to set the components of. |
other | The color to copy the components from. |
copyAlpha | Whether to copy the alpha component (default=true). |