Unity_HideIf
Unity_HideIf copied to clipboard
Unity 2020: Labels (field names) hidden in unhidden fields
Hi, I very much appreciate this package. However I found this issue, Happens to me in Unity 2020.3
public bool httpBasicAuthentication = true;
[BasteRainGames.HideIf("httpBasicAuthentication", false)]
public string username = "susan";
[BasteRainGames.HideIf("httpBasicAuthentication", false)]
public string password = "hello";

I could resolve this issue by changing HideIfAttributeDrawer.cs:71 from
EditorGUI.PropertyField(position, property, true);
to
EditorGUI.PropertyField(position, property, label, true);