Version: 2022.3
言語: 日本語

SpaceAttribute

class in UnityEngine

/

継承:PropertyAttribute

マニュアルに切り替える

説明

インスペクターにスペースを追加するにはこの DecoratorDrawer を使用してください。

スペースは DecoratorDrawer を使用して追加します。

using UnityEngine;

public class Example : MonoBehaviour { int health = 0; int maxHealth = 100;

[Space(10)] // 10 pixels of spacing here.

int shield = 0; int maxShield = 0; }

変数

heightピクセル単位のスペース

コンストラクタ

SpaceAttributeインスペクターにスペースを追加するにはこの DecoratorDrawer を使用してください。

継承メンバー

変数

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