ConditionalInfoBox

Adds an Info Box on top of a Property when a condition is met.

Applied on Properties

[ConditionalInfoBox("showInfoBox", 
    "This info box is shown because showInfoBox is true.")]
public bool showInfoBox;


    
[ConditionalInfoBox("showWarningBox", 
    "This warning box is shown because showWarningBox is true.", 
    InfoBoxType.Warning)]
public bool showWarningBox;



       
[ConditionalInfoBox("showErrorBox", 
    "This error box is shown because showErrorBox is true.", InfoBoxType.Error)]
 public bool showErrorBox;
 
 
 
        
[ConditionalInfoBox("CheckCondition", 
    "This info box is shown because showInfoBox is true.")]
public int someIntValue;

private bool CheckCondition()
{
     return someIntValue > 5;
}

InfoBoxType

Enum
InfoBoxType

Enum member ( InfoBoxType )

Info

Enum member ( InfoBoxType )

Warning

Enum member ( InfoBoxType )

Error

Last updated