HeaderAttribute

class in UnityEngine

Cambiar al Manual

Descripción

Use this PropertyAttribute to add a header above some fields in the Inspector.

The header is done using a DecoratorDrawer.

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; }

Variables

headerThe header text.

Constructores

HeaderAttributeAdd a header above some fields in the Inspector.