Class ReadOnlyPropertyDrawer
- Namespace
- Gamelogic.Extensions.Editor
- Assembly
- Gamelogic.Extensions.Editor.dll
A property drawer that can be used for read-only fields in the inspector.
[Version(2, 5, 0)]
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
public class ReadOnlyPropertyDrawer : PropertyDrawer
- Inheritance
-
GUIDrawerReadOnlyPropertyDrawer
- Inherited Members
-
PropertyDrawer.CanCacheInspectorGUI(SerializedProperty)PropertyDrawer.attributePropertyDrawer.fieldInfo
- Extension Methods
Methods
- GetPropertyHeight(SerializedProperty, GUIContent)
Override this method to specify how tall the GUI for this field is in pixels.
- OnGUI(Rect, SerializedProperty, GUIContent)
Override this method to make your own IMGUI based GUI for the property.