Attribute Reference
KIBAMaterialGUI is attribute-first. It does not parse layout commands from display names. Put layout, visibility, validation, and renderer hints in ShaderLab attributes next to the property they affect.
KIBAMaterialGUI Attributes
[Group]routes properties into inspector groups.[ShowIf]hides a property until another numeric property matches a value.[Vector],[Vector2],[Vector3],[Vector4]choose how many vector components are shown.[MinMaxSlider]renders a vector as a min/max slider pair.[Unit]shows a compact unit label in numeric fields.[Space]adds vertical spacing before a row.[Divider]draws a divider before a row.[GradientTexture],[Gradient]render a texture as a gradient editor.[FlexibleRange],[Flexible]mark a range as a flexible numeric control.[SegmentedEnum],[Segmented]render enum-like floats as segmented buttons.[Validate]runs a C# validator when a value changes.
Unity Attributes
KIBAMaterialGUI also reads common Unity material attributes such as [Toggle], [ToggleOff], [Enum], [KeywordEnum], [HDR], and [NoScaleOffset].
See Unity Built-Ins.
General Rules
- Attribute names are case-sensitive in ShaderLab.
- Nested group paths use comma-separated arguments, not slash-separated strings.
- Invalid KIBAMaterialGUI attribute arguments are reported in the inspector diagnostics panel when possible.
- Hidden properties keep their material values unchanged.