Vixen
02b45cc4
csharp
public sealed class ColorUsageAttribute

Says how a colour member should be edited.

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

As a annotation

Valid on
Property, Field

Remarks

A colour is the one type where the editor cannot be derived from the type: an albedo tint is four channels in zero-to-one, an emissive tint is three channels with an intensity that goes well past one, and a picker that offered the wrong one produces either a clipped material or a meaningless alpha slider.

Fields and properties (2)

  • public bool Hdr

    Whether values above one are meaningful.

  • public bool ShowAlpha

    Whether the alpha channel is shown.

Methods (1)

  • public ColorUsageAttribute(bool hdr = false)

    Says how a colour member should be edited.

Used by (5)

  • ColourParameterVixen.Editor.AssetEditors
  • Describes_Vixen_Editor_AssetEditors_Materials_ColourParameterVixen.Editor.AssetEditors
  • Describes_Vixen_Editor_Inspector_Tests_WaterMaterialVixen.Editor.Inspector.Tests
  • DrawerRegistryVixen.Editor.Inspector
  • WaterMaterialVixen.Editor.Inspector.Tests