NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

Expandable Attribute label is broken in custom editor window

Open Peaj opened this issue 4 years ago • 1 comments

When displaying an editor in a custom window by using Editor.CreateEditor from a class using the Expandable attribute the label is displayed twice as seen in this image: image

public class LevelData : ScriptableObject
{
    [Expandable]
    public LevelSettings Settings;
    ...
}
var editor = Editor.CreateEditor(this.level);
editor.OnInspectorGUI();

Peaj avatar Feb 28 '22 13:02 Peaj

i got the same problem ,If you don't have to display the variable name ,you can use [Expandable, Label(" ")]

ZeroUltra avatar Jun 17 '22 08:06 ZeroUltra