Click or drag to resize

ReadOnlyDrawer Class

Makes fields marked with ReadOnlyAttribute uninteractable via the inspector.
Inheritance Hierarchy
SystemObject
  GUIDrawer
    PropertyDrawer
      Archon.SwissArmyLib.Editor.UtilsReadOnlyDrawer

Namespace:  Archon.SwissArmyLib.Editor.Utils
Assembly:  Archon.SwissArmyLib.Editor (in Archon.SwissArmyLib.Editor.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class ReadOnlyDrawer : PropertyDrawer
Request Example View Source

The ReadOnlyDrawer type exposes the following members.

Constructors
  NameDescription
Public methodReadOnlyDrawer
Initializes a new instance of the ReadOnlyDrawer class
Top
Properties
  NameDescription
Public propertyattribute

The PropertyAttribute for the property. Not applicable for custom class drawers. (Read Only)

(Inherited from PropertyDrawer.)
Public propertyfieldInfo

The reflection FieldInfo for the member this property represents. (Read Only)

(Inherited from PropertyDrawer.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetPropertyHeight

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

(Inherited from PropertyDrawer.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnGUI

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

(Overrides PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also