Class ReadOnlyDrawer
A variable with the ReadOnly tag cannot be modified in the inspector.
Inheritance
ReadOnlyDrawer
Assembly: cs.temp.dll.dll
Syntax
public class ReadOnlyDrawer : PropertyDrawer
Methods
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
| Type |
Name |
Description |
| SerializedProperty |
property |
|
| GUIContent |
label |
|
Returns
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
| Type |
Name |
Description |
| Rect |
position |
|
| SerializedProperty |
property |
|
| GUIContent |
label |
|