Color

unityengine.Color (extern class)

Unity Color struct extern binding for Ceramic. Represents RGBA color values with components in the 0-1 range.

Unity uses floating-point color values where each component (red, green, blue, alpha) ranges from 0.0 to 1.0. This binding provides the constructor needed by the Ceramic backend.

Instance Members

unity
new(r: Single, g: Single, b: Single, a: Single): Void

Creates a new Color with the specified RGBA values. All components should be in the range 0.0 to 1.0. Values outside this range are allowed but may produce unexpected results in rendering.

Name Type Description
r Single Red component (0.0 = no red, 1.0 = full red)
g Single Green component (0.0 = no green, 1.0 = full green)
b Single Blue component (0.0 = no blue, 1.0 = full blue)
a Single Alpha component (0.0 = transparent, 1.0 = opaque)

Metadata

Name Parameters
:nativeGen -