What is Unity Header and Space Feature?

While developing a project in Unity Editor, the Header property (Attribute) is used to group the variables that will appear in the Inspector.

If we want these variables to be spaced in the Inspector, we use the Space property.

An example usage is given below..

public class UnityTest : MonoBehaviour { [Header("Part1")] public int aaa; public int bbb; [Space] [Header("Part2")] public int ccc; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }


You May Interest

What is Unity FBX?

What is Unity IL2CPP ?

Searching Multiple GameObjects By Unity Tag

What is Unity MonoDevelop ?

Using Unity Editor Black Theme