codewriter-packages / Tri-Inspector

Free inspector attributes for Unity [Custom Editor, Custom Inspector, Inspector Attributes, Attribute Extensions]
MIT License
972 stars 47 forks source link

InfoBox doesn't update visibility immediately if showif condition changes #109

Open aaronatweta opened 1 year ago

aaronatweta commented 1 year ago

Describe the bug Add an InfoBox attribute to a field. Give the InfoBox a 'showif' parameter Observe showif is initially respected. Change state such that showif result would change Observe the visibility of the InfoBox does not change until you navigate away or cause some other update of the inspector

Expected behavior Changing the state such that the showif result would change should update visibility immediately.

Code Sample

[InfoBox("Some message", TriMessageType.Info, "$SomeConditionCheck")]
private int field;

Desktop: Windows 10 Unity version: 2021.1.24 Tri Inspector version: 1.10.1