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

TabGroups don't indent arrays, lists etc properly. #77

Open
Petethegoat opened this issue Mar 26, 2024 · 0 comments
Open

TabGroups don't indent arrays, lists etc properly. #77

Petethegoat opened this issue Mar 26, 2024 · 0 comments

Comments

@Petethegoat
Copy link

image
image

List (and array, and dictionary etc) foldouts don't get indented properly inside TabGroups. Had a quick look into it, but I'm not good with the UIElements stuff so couldn't figure it out.
Lists with foldouts inside FoldoutGroups do indent correctly.

Test case here:

using UnityEngine;
using Alchemy.Inspector;

public class Oops : MonoBehaviour
{
	[SerializeField] string[] goodStrings = { "foo", "bar" };
	[SerializeField, TabGroup("Bad Zone")] string[] badStrings = { "boo", "far" };
	[SerializeField, TabGroup("Another Tab"), ListViewSettings(ShowFoldoutHeader = false)] string[] fineStrings = { "fixed without the foldout via ListViewSettings", "goo", "tar" };
	[SerializeField, FoldoutGroup("Foldouts are okay")] string[] goodStrings2 = { "foo", "bar" };
}
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

1 participant