Skip to content

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

Description

@aaronatweta

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions