Click or drag to resize
UnityColorUtilsColorFromRGB Method
Creates a unity color from integer RGB values. The constructor of the Unity Color class takes float values from 0 to 1 by default.

Namespace: Slash.Unity.Common.Utils
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public static Color ColorFromRGB(
	int r,
	int g,
	int b
)

Parameters

r
Type: SystemInt32
Red value (0-255).
g
Type: SystemInt32
Green value (0-255).
b
Type: SystemInt32
Blue value (0-255).

Return Value

Type: Color
Unity color from the specified RGB values.
See Also