System.UInt32 RawInt { get; set; }

robot_2Generated
code_blocksInput

Description

The RawInt property of the Color32 struct provides an integer representation of the color in the format 0xAABBGGRR. This format is commonly used by native code to represent colors, where each pair of hexadecimal digits represents a color component: alpha (AA), blue (BB), green (GG), and red (RR).

Usage

Use the RawInt property when you need to interact with systems or APIs that require color data in a packed integer format. This property is particularly useful for low-level graphics programming or when interfacing with native libraries that expect color data in this specific format.

Example

// Example of accessing the RawInt property
Color32 color = new Color32();
uint rawColorValue = color.RawInt;

// Example of setting the RawInt property
color.RawInt = 0xFF00FF00; // Sets the color to fully opaque green