Class ReadOnlyDrawer
A variable with the ReadOnly tag cannot be modified in the inspector.
Inheritance
System.Object
ReadOnlyDrawer
Namespace: AutoBattleFramework.EditorScripts
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
| Type | Description |
|---|---|
| System.Single |
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 |