Vixen
02b45cc4
csharp
public sealed class ColorDrawer

A colour swatch that opens a picker.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ A ColorInput and not a ColorPicker, which is what this row used to embed. The picker is the whole apparatus — a 150-pixel field, two bands, a hex box, an intensity slider and a palette — and a material with four tints was four of those stacked down the inspector with the next property somewhere past the bottom of the panel. What belongs in a row is the box; the picker belongs in what the box opens.

ColorUsageAttribute is what decides whether the picker offers an intensity slider and an alpha band, because a colour's type does not say which of those are meaningful — an albedo tint and an emissive tint are both a Color4 and want different editors.

Methods (2)

Used by (2)

  • DrawerRegistryVixen.Editor.Inspector
  • DrawerTestsVixen.Editor.Inspector.Tests