ImportantEnableSaintsEditorbefore using
Layout system allows you to group severral target (field, property, button etc) together. It also allows you to box it with/without a title box or foldout box.
This will generate:
- Temp files under
Library/SaintsFieldTemp Assets/Editor Default Resources/SaintsField/Temp.SaintsFieldSourceParser.additionalfile(You should ignore this in your version control)
You can change configs under Assets/Editor Default Resources/SaintsField/Config.SaintsFieldSourceParser.additionalfile
The field can be groupd as:
using SaintsField.Playa; [LayoutStart("Group", ELayout.FoldoutBox)] public int i1; public int i2; [LayoutStart("./Sub", ELayout.FoldoutBox)] public string s1; public string s2; [LayoutEnd(".")] public int i3; public int i4; [LayoutEnd] public GameObjct out1; public GameObjct out2;

You can also mix it with Button & ShowInInspector
[LayoutStart("Left Hand", ELayout.FoldoutBox)] public GameObject leftEquipment; public int leftAttack; [Button] public void SetLeftHand() {} [LayoutStart("Right Hand", ELayout.FoldoutBox)] public GameObject rightEquipment; public int rightAttack; [Button] public void SetRightHand() {} [LayoutEnd] public int hp; public int mp;

All together showcase:
