Vixen
02b45cc4
csharp
public sealed class Color3Drawer

The same swatch and picker, over a colour with no alpha.

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

Remarks

⚠ A separate drawer rather than a coercion in ColorDrawer, because a drawer is chosen by the member's exact type. Color3 had none at all, so every member of that type fell through to the read-only last resort — which for a light's colour meant the one property people open a light to change was a line of grey text. It is the type the renderer uses for anything with no meaningful alpha, so Light.Colour is not the only member this reaches.

⚠ Alpha is refused rather than defaulted. ColorUsage can still ask for HDR — an emissive tint wants an intensity above one, and Color3 is exactly the type such a tint has — but a picker offering an alpha band for a value with nowhere to put one is a control that silently drops what it was told.

Methods (2)

Used by (1)

  • DrawerRegistryVixen.Editor.Inspector