unity inspector header variable code example
Example 1: header in inspector unity
[Header("Health")]
public int health = 100;
Example 2: unity inspector header attribute
//HEADER ATTRIBUTE
using UnityEngine;
public class Example : MonoBehaviour
{
[Header("Health Settings")]
public int health = 0;
public int maxHealth = 100;
[Header("Shield Settings")]
public int shield = 0;
public int maxShield = 0;
}