C# Класс UnityEditor.MaterialPropertyDrawer

Base class to derive custom material property drawers from.

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

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

Метод Описание
Apply ( MaterialProperty prop ) : void

Apply extra initial values to the material.

GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float

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

OnGUI ( Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor ) : void
OnGUI ( Rect position, MaterialProperty prop, string label, MaterialEditor editor ) : void

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

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

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

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

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

Apply extra initial values to the material.

public Apply ( MaterialProperty prop ) : void
prop MaterialProperty The MaterialProperty to apply values for.
Результат void

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

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

public GetPropertyHeight ( MaterialProperty prop, string label, MaterialEditor editor ) : float
prop MaterialProperty The MaterialProperty to make the custom GUI for.
label string The label of this property.
editor MaterialEditor Current material editor.
Результат float

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

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

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

public OnGUI ( Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor ) : void
position UnityEngine.Rect
prop MaterialProperty
label UnityEngine.GUIContent
editor MaterialEditor
Результат void

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

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

public OnGUI ( Rect position, MaterialProperty prop, string label, MaterialEditor editor ) : void
position UnityEngine.Rect Rectangle on the screen to use for the property GUI.
prop MaterialProperty The MaterialProperty to make the custom GUI for.
label string The label of this property.
editor MaterialEditor Current material editor.
Результат void