Unity_HideIf icon indicating copy to clipboard operation
Unity_HideIf copied to clipboard

Unity 2020: Labels (field names) hidden in unhidden fields

Open jackbrookes opened this issue 4 years ago • 1 comments

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";

image

jackbrookes avatar Jun 30 '21 09:06 jackbrookes

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

46692 avatar Aug 16 '22 18:08 46692