Class WeedAppearanceSettings
Configures the four native color channels used by a weed product.
public sealed class WeedAppearanceSettings
- Inheritance
-
WeedAppearanceSettings
- Inherited Members
- Extension Methods
Constructors
WeedAppearanceSettings(Color32, Color32, Color32, Color32)
Creates weed appearance settings.
public WeedAppearanceSettings(Color32 mainColor, Color32 secondaryColor, Color32 leafColor, Color32 stemColor)
Parameters
mainColorColor32The primary bud color.
secondaryColorColor32The secondary bud color.
leafColorColor32The leaf color.
stemColorColor32The stem color.
Exceptions
- ArgumentException
Thrown when any color is fully clear. The native creator treats a clear channel as an uninitialized appearance and replaces all supplied colors with generated colors.
Properties
LeafColor
Gets the leaf color.
public Color32 LeafColor { get; }
Property Value
- Color32
MainColor
Gets the primary bud color.
public Color32 MainColor { get; }
Property Value
- Color32
SecondaryColor
Gets the secondary bud color.
public Color32 SecondaryColor { get; }
Property Value
- Color32
StemColor
Gets the stem color.
public Color32 StemColor { get; }
Property Value
- Color32