Hamza
2
Q:

unity inspector 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;
}
6
//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;
}
0

New to Communities?

Join the community