jacobdufault / fullinspector

Full Inspector supercharges Unity's inspector
MIT License
111 stars 27 forks source link

InspectorShowIf/InspectorHideIf attributes for multiple properties #142

Closed marek-mayer closed 8 years ago

marek-mayer commented 8 years ago

It would be great if it would be possible to use multiple proprties to be able to show/hide other properties if every single one of the properties is true (so this would be a logical AND). Or even go further and allow an OR with something like that:

public bool Cond1;
public bool Cond2;

[InspectorShowIf(LogicalOperators.OR, "Cond1", "Cond2")]
public string ShowIfAnyConditionTrue;

[InspectorShowIf(LogicalOperators.AND, "Cond1", "Cond2")]
public string ShowIfEveryConditionTrue;
jacobdufault commented 8 years ago

Done; this is available in the latest build from access. LogicalOperators is renamed to fiLogicalOperators.