Class RegexHelperDrawer
Inheritance
System.Object
UnityEditor.GUIDrawer
UnityEditor.PropertyDrawer
RegexHelperDrawer
Assembly: ScriptTemplateSettings.dll
Syntax
[CustomPropertyDrawer(typeof (RegexHelper))]
public class RegexHelperDrawer : PropertyDrawer
Fields
CASE_SENSITIVE_PROP
Declaration
public const string CASE_SENSITIVE_PROP = "caseSensitive"
Field Value
Type |
Description |
System.String |
|
MODE_PROP
Declaration
public const string MODE_PROP = "mode"
Field Value
Type |
Description |
System.String |
|
PATTERN_PROP
Declaration
public const string PATTERN_PROP = "pattern"
Field Value
Type |
Description |
System.String |
|
REGEX_OPTIONS_PROP
Declaration
public const string REGEX_OPTIONS_PROP = "regexOptions"
Field Value
Type |
Description |
System.String |
|
Methods
DrawLastProperty(SerializedProperty, Rect, Boolean)
Declaration
public static void DrawLastProperty(SerializedProperty property, Rect rect, bool showName)
Parameters
Type |
Name |
Description |
UnityEditor.SerializedProperty |
property |
|
UnityEngine.Rect |
rect |
|
System.Boolean |
showName |
|
GetMatchMode(SerializedProperty)
Declaration
protected static RegexHelper.MatchMode GetMatchMode(SerializedProperty property)
Parameters
Type |
Name |
Description |
UnityEditor.SerializedProperty |
property |
|
Returns
GetPropertyHeight(SerializedProperty, GUIContent)
Declaration
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
Type |
Name |
Description |
UnityEditor.SerializedProperty |
property |
|
UnityEngine.GUIContent |
label |
|
Returns
Type |
Description |
System.Single |
|
Overrides
UnityEditor.PropertyDrawer.GetPropertyHeight(UnityEditor.SerializedProperty, UnityEngine.GUIContent)
OnGUI(Rect, SerializedProperty, GUIContent)
Declaration
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
Type |
Name |
Description |
UnityEngine.Rect |
position |
|
UnityEditor.SerializedProperty |
property |
|
UnityEngine.GUIContent |
label |
|
Overrides
UnityEditor.PropertyDrawer.OnGUI(UnityEngine.Rect, UnityEditor.SerializedProperty, UnityEngine.GUIContent)