FoldoutGroup Attribute
Attribute to display the specified fields in a foldout
- Parameters:
stringgroupName: The name of the groupoptional,
booldrawInBox: Draw the group in a nice boxparams,
stringfieldsToGroup: The name of the fields to group
Example:
using UnityEngine;
using EditorAttributes;
public class AttributesExample : MonoBehaviour
{
[FoldoutGroup("FoldoutGroup", nameof(intField), nameof(stringField), nameof(boolField))]
[SerializeField] private Void groupHolder;
[SerializeField, HideProperty] private int intField;
[SerializeField, HideProperty] private string stringField;
[SerializeField, HideProperty] private bool boolField;
}