TylerTemp/SaintsField

IMGUI fancy foldout Layout

laurentopia opened this issue · 4 comments

foldout don't indent either
[LayoutGroup("Damage", ELayout.Background | ELayout.Title | ELayout.FoldoutBox)]
image

Not supported yet.

But I'm not planning to do it either, cuz the best way is, maybe just change the outlook of foldout group in IMGUI, into the style of UI Toolkit, then most confusing will be gone.

But still, IMGUI is not a primary target for this project: the IMGUI support is only "it works in IMGUI".

So I'll put this feature much later

Hi @laurentopia

Please check 3.2.6 which improved the foldout look in IMGUI, which looks completely different from the default foldout. Remember to use FoldoutBox instead of Foldout

[Serializable]
public struct MyStruct
{
    public string myField;
}

public MyStruct foldoutAbove;

[Layout("Test", ELayout.FoldoutBox)] public string testBg;

public MyStruct foldoutBelow;

image

but do they nest? ;)

but do they nest? ;)

@laurentopia See comment on #65