space between inspector filed unity code example
Example 1: space custom inspector
EditorGUILayout.Space;
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;
}