Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[Conditional("UNITY_EDITOR")]
public class ShowIfGroupAttribute : PropertyGroupAttribute, _Attribute
ShowIfGroup allows for showing or hiding a group of properties based on a condition.
The attribute is a group attribute and can therefore be combined with other group attributes, and even be used to show or hide entire groups.
Note that in the vast majority of cases where you simply want to be able to control the visibility of a single group, it is better to use the VisibleIf parameter that *all* group attributes have.
public ShowIfGroupAttribute(string path, bool animate = true)
System.String | path | The group path. |
System.Boolean | animate | If |
public ShowIfGroupAttribute(string path, object value, bool animate = true)
System.String | path | The group path. |
System.Object | value | The value the member should equal for the property to shown. |
System.Boolean | animate | If |
public object Value
public bool Animate { get; set; }
public string Condition { get; set; }
protected override void CombineValuesWith(PropertyGroupAttribute other)
PropertyGroupAttribute | other | Another ShowIfGroup attribute. |