color
Gets or sets the color that is multiplied with the billboard's texture. This has two common use cases. First, the same white texture may be used by many different billboards, each with a different color, to create colored billboards. Second, the color's alpha component can be used to make the billboard translucent as shown below. An alpha of 0.0
makes the billboard transparent, and 1.0
makes the billboard opaque.
The red, green, blue, and alpha values are indicated by value
's red
, green
, blue
, and alpha
properties as shown in Example 1. These components range from 0.0
(no intensity) to 1.0
(full intensity).
// Example 1. Assign yellow.
b.color = Color.YELLOW;
Content copied to clipboard
// Example 2. Make a billboard 50% translucent.
b.color = new Color(1.0, 1.0, 1.0, 0.5);
Content copied to clipboard