Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue] InfoBox is still shown even if ShowIf is false, it also makes the field appear #207

Closed
RunninglVlan opened this issue Jan 22, 2021 · 4 comments

Comments

@RunninglVlan
Copy link

namespace NaughtyAttributes.Test
{
  public class InfoBoxTest : MonoBehaviour
  {
+   public bool show;

+   [ShowIf("show")]
    [InfoBox("Normal", EInfoBoxType.Normal)]
    public int normal;

+   [ShowIf("show")]
+   public int normal2;
    ...
  }
  ...
}

image
image

@RunninglVlan RunninglVlan changed the title InfoBox is still shown even if ShowIf is false, it also makes the field show up InfoBox is still shown even if ShowIf is false, it also makes the field appear Jan 22, 2021
@YigitVeloxia
Copy link

YigitVeloxia commented Apr 8, 2021

+1. Show if, hide if doesn't work with info boxes. Same applies for EnableIf, DisableIf.

@dbrizov dbrizov changed the title InfoBox is still shown even if ShowIf is false, it also makes the field appear [Issue] InfoBox is still shown even if ShowIf is false, it also makes the field appear Apr 24, 2021
@dbrizov
Copy link
Owner

dbrizov commented Apr 25, 2021

HorizontalLine is also a DecoratorDrawer and doesn't work with ShowIf/HideIf/EnableIf/DisableIf

dbrizov added a commit that referenced this issue Apr 25, 2021
@dbrizov
Copy link
Owner

dbrizov commented Apr 25, 2021

Fixed in 6e24ead

@dbrizov dbrizov closed this as completed Apr 25, 2021
github-actions bot pushed a commit that referenced this issue Apr 25, 2021
@RoxDevvv
Copy link

this issue still remaining in unity 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants