Skip to main content

Class VariableReferenceDrawer

Custom property drwawer for all BaseVariableReference`2?text=Variable+Reference.

[CustomPropertyDrawer(typeof(BaseVariableReference<,>), true)]
public class VariableReferenceDrawer : PropertyDrawer

Inheritance​

Methods​

OnGUI(Rect, SerializedProperty, GUIContent)​

Create IMGUI based GUI for the property.

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)

Parameters​

NameTypeDescription
positionRectRectangle on the screen to use for the property GUI.
propertySerializedPropertyThe SerializedProperty to make the custom GUI for.
labelGUIContentThe label of this property.
  • Methods
    • OnGUI(Rect, SerializedProperty, GUIContent)