C# Класс UnityEditor.PropertyDrawer

Base class to derive custom property drawers from. Use this to create custom drawers for your own Serializable classes or for script variables with custom PropertyAttributes.

Наследование: GUIDrawer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float

Override this method to specify how tall the GUI for this field is in pixels.

OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Override this method to make your own GUI for the property.

Защищенные методы

Метод Описание
PropertyDrawer ( ) : System

Приватные методы

Метод Описание
GetPropertyHeightSafe ( UnityEditor.SerializedProperty property, GUIContent label ) : float
OnGUISafe ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void

Описание методов

GetPropertyHeight() публичный Метод

Override this method to specify how tall the GUI for this field is in pixels.

public GetPropertyHeight ( UnityEditor.SerializedProperty property, GUIContent label ) : float
property UnityEditor.SerializedProperty The SerializedProperty to make the custom GUI for.
label UnityEngine.GUIContent The label of this property.
Результат float

OnGUI() публичный Метод

Override this method to make your own GUI for the property.

public OnGUI ( Rect position, UnityEditor.SerializedProperty property, GUIContent label ) : void
position UnityEngine.Rect Rectangle on the screen to use for the property GUI.
property UnityEditor.SerializedProperty The SerializedProperty to make the custom GUI for.
label UnityEngine.GUIContent The label of this property.
Результат void

PropertyDrawer() защищенный Метод

protected PropertyDrawer ( ) : System
Результат System