I placed the [FoldoutGroup("Things")] attribute on a class, and I expected references to those classes in my SerializedMonoBehaviours to all be within the "Things" foldout group, but they were not. The same issue occurs for BoxGroups, so I'm assuming it occurs for all group attributes.
Add the following script to your project in a file called ThingTest.cs:
public class ThingTest : SerializedMonoBehaviour
public Thing one;
public Thing two;
public Thing three;
[FoldoutGroup("More Things")] public Thing four; [FoldoutGroup("More Things")] public Thing five; [FoldoutGroup("More Things")] public Thing six;
public class Thing
public int a;
Add the ThingTest Component to an empty game object, and note that Things one, two, and three are not grouped properly like four, five, and six are.
- Windows 10 Home