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

Expandable Attribute label is broken in custom editor window #306

Open
Peaj opened this issue Feb 28, 2022 · 1 comment
Open

Expandable Attribute label is broken in custom editor window #306

Peaj opened this issue Feb 28, 2022 · 1 comment

Comments

@Peaj
Copy link

Peaj commented Feb 28, 2022

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();
@ZeroUltra
Copy link

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

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

2 participants