|
JUtils
A unity utilities library
|
Hide a field if the condition does not match, allows checks for bools, ints, floats & strings More...


Public Types | |
| enum class | Comparer { Equals , Or , Greater , Smaller } |
Public Member Functions | |
| ShowWhenAttribute (string variable, string value, bool showAsObject=true) | |
| Shows when the "Variable" field does not match the "value" More... | |
| ShowWhenAttribute (string variable, int value, Comparer comparer=Comparer.Equals) | |
| Shows when the "Variable" field does not match the "value" More... | |
| ShowWhenAttribute (string variable, int value, bool showAsObject, Comparer comparer=Comparer.Equals) | |
| Shows when the "Variable" field returns true on tne comparer More... | |
| ShowWhenAttribute (string variable, float value, Comparer comparer=Comparer.Equals) | |
| Shows when the "Variable" field returns true on tne comparer More... | |
| ShowWhenAttribute (string variable, float value, bool showAsObject, Comparer comparer=Comparer.Equals) | |
| Shows when the "Variable" field returns true on tne comparer More... | |
| ShowWhenAttribute (string variable, bool value, bool showAsObject=true) | |
| Shows when the "Variable" field matches the bool value More... | |
Public Attributes | |
| readonly string | variable |
| readonly object | value |
| readonly Comparer | comparer |
| readonly bool | showAsObject |
Hide a field if the condition does not match, allows checks for bools, ints, floats & strings
|
strong |
|
inline |
Shows when the "Variable" field does not match the "value"
References JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
|
inline |
Shows when the "Variable" field does not match the "value"
References JUtils.ShowWhenAttribute.comparer, JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
|
inline |
Shows when the "Variable" field returns true on tne comparer
References JUtils.ShowWhenAttribute.comparer, JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
|
inline |
Shows when the "Variable" field returns true on tne comparer
References JUtils.ShowWhenAttribute.comparer, JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
|
inline |
Shows when the "Variable" field returns true on tne comparer
References JUtils.ShowWhenAttribute.comparer, JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
|
inline |
Shows when the "Variable" field matches the bool value
References JUtils.ShowWhenAttribute.showAsObject, JUtils.ShowWhenAttribute.value, and JUtils.ShowWhenAttribute.variable.
| readonly Comparer JUtils.ShowWhenAttribute.comparer |
| readonly bool JUtils.ShowWhenAttribute.showAsObject |
| readonly object JUtils.ShowWhenAttribute.value |
| readonly string JUtils.ShowWhenAttribute.variable |