csharp
public sealed class ColorUsageAttributeSays 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 HdrWhether values above one are meaningful.
public bool ShowAlphaWhether 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