Version: 2017.3

HeaderAttribute

class in UnityEngine

/

Hereda de:PropertyAttribute

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;
using System.Collections;

public class ExampleClass : 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.

Miembros heredados

Variables

orderOptional field to specify the order that multiple DecorationDrawers should be drawn in.