The RawInt
property provides an integer representation of a color in the format 0xAABBGGRR
, which is commonly used by native code. This format encodes the alpha, blue, green, and red components of the color into a single 32-bit unsigned integer.
The RawInt
property provides an integer representation of a color in the format 0xAABBGGRR
, which is commonly used by native code. This format encodes the alpha, blue, green, and red components of the color into a single 32-bit unsigned integer.
Use the RawInt
property when you need to interact with systems or APIs that require color data in a packed integer format. This is particularly useful for performance-sensitive operations where a compact representation of color data is beneficial.
// Example of accessing the RawInt property Color color = new Color(1.0f, 0.5f, 0.25f, 0.75f); uint rawIntValue = color.RawInt; // rawIntValue now holds the integer representation of the color in 0xAABBGGRR format