Unity Header Space code example
Example 1: Create gaps / headers between variables in the unity inspector
float variable1;
[Space] //Creates a space inside of the unity editor
[Header("This is a header")] //Creates a header inside of the unity editor
float variable2;
Example 2: unity add empty line to in inspector
using UnityEngine;
public class Example : MonoBehaviour
{
int health = 0;
int maxHealth = 100;
[Space(10)] // 10 pixels of spacing here.
int shield = 10;
int maxShield = 10;
}