Hide
Overview
Important
Enable SaintsEditor before 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.

Member order metadata is generated by Roslyn in memory and compiled into each assembly. SaintsField creates no generated source or member-order cache files in Assets or Library.

The optional Assets/Editor Default Resources/SaintsField/Config.SaintsFieldSourceParser.additionalfile supports:

debug = 0 disabled = 0

Set debug = 1 to append diagnostics to SaintsFieldSourceParser.txt in the system temporary folder. Set disabled = 1 to stop the parser without generating member metadata. If the config file does not exist, both values default to 0.

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: