Version: 2017.2

HeaderAttribute

class in UnityEngine

/

継承:PropertyAttribute

マニュアルに切り替える

説明

この PropertyAttribute はインスペクターのいくつかのフィールドにヘッダーを追加するために使用します。

ヘッダーは 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; }

変数

headerヘッダーのテキスト

コンストラクタ

HeaderAttributeインスペクターのフィールドにヘッダーを追加します

継承メンバー

変数

order複数の DecorationDrawer がある場合に描画する順番を指定するフィールド