Alchemy icon indicating copy to clipboard operation
Alchemy copied to clipboard

TabGroups don't indent arrays, lists etc properly.

Open Petethegoat opened this issue 11 months ago • 0 comments

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

Petethegoat avatar Mar 26 '24 18:03 Petethegoat