Click or drag to resize

HideFieldPropertyDrawer Class

Allows hiding / disabling of fields without writing fancy custom editors. Adapted from http://www.brechtos.com/hiding-or-disabling-inspector-properties-using-propertydrawers-within-unity-5/
Inheritance Hierarchy
SystemObject
  GUIDrawer
    PropertyDrawer
      DustProductions.CoreHideFieldPropertyDrawer

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core.Editor (in DustProductions.Core.Editor.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class HideFieldPropertyDrawer : PropertyDrawer

The HideFieldPropertyDrawer type exposes the following members.

Constructors
  NameDescription
Public methodHideFieldPropertyDrawer
Initializes a new instance of the HideFieldPropertyDrawer class
Top
Methods
  NameDescription
Public methodGetPropertyHeight
Override the default height drawer depending on if we are displaying this property or not
(Overrides PropertyDrawer.GetPropertyHeight(SerializedProperty, GUIContent).)
Public methodOnGUI
Override the default drawer with this
(Overrides PropertyDrawer.OnGUI(Rect, SerializedProperty, GUIContent).)
Top
See Also