A* Pathfinding Project  4.1.20
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
EditorBase Class Reference

Helper for creating editors. More...

Detailed Description

Helper for creating editors.

Public Member Functions

sealed override void OnInspectorGUI ()
 

Protected Member Functions

void Clamp (string name, float min, float max=float.PositiveInfinity)
 
void ClampInt (string name, int min, int max=int.MaxValue)
 
SerializedProperty FindProperty (string name)
 
virtual void Inspector ()
 
void IntSlider (string propertyPath, int left, int right)
 
void Mask (string propertyPath, string[] options, string label=null)
 
virtual void OnEnable ()
 
void Popup (string propertyPath, GUIContent[] options, string label=null)
 
bool PropertyField (string propertyPath, string label=null, string tooltip=null)
 
bool PropertyField (SerializedProperty prop, string label=null, string tooltip=null)
 

Private Member Functions

void CaptureContextClick (string propertyPath)
 
string FindLocalTooltip (string path)
 
bool IsContextClick ()
 
bool PropertyField (SerializedProperty prop, string label, string tooltip, string propertyPath)
 

Static Private Member Functions

static string FindTooltip (string path)
 
static string FindURL (System.Type type, string path)
 
static string FindURL (string path)
 
static void LoadMeta ()
 

Private Attributes

Dictionary< string, string > localTooltips = new Dictionary<string, string>()
 
Dictionary< string,
SerializedProperty > 
props = new Dictionary<string, SerializedProperty>()
 

Static Private Attributes

static
System.Collections.Generic.Dictionary
< string, string > 
cachedTooltips
 
static
System.Collections.Generic.Dictionary
< string, string > 
cachedURLs
 
static GUIContent content = new GUIContent()
 
static GUILayoutOption[] noOptions = new GUILayoutOption[0]
 
static GUIContent showInDocContent = new GUIContent("Show in online documentation", "")
 

Member Function Documentation

void CaptureContextClick ( string  propertyPath)
private
void Clamp ( string  name,
float  min,
float  max = float.PositiveInfinity 
)
protected
void ClampInt ( string  name,
int  min,
int  max = int.MaxValue 
)
protected
string FindLocalTooltip ( string  path)
private
SerializedProperty FindProperty ( string  name)
protected
static string FindTooltip ( string  path)
staticprivate
static string FindURL ( System.Type  type,
string  path 
)
staticprivate
static string FindURL ( string  path)
staticprivate
void IntSlider ( string  propertyPath,
int  left,
int  right 
)
protected
bool IsContextClick ( )
private
static void LoadMeta ( )
staticprivate
void Mask ( string  propertyPath,
string[]  options,
string  label = null 
)
protected
virtual void OnEnable ( )
protectedvirtual

Reimplemented in RecastMeshObjEditor, and BaseAIEditor.

sealed override void OnInspectorGUI ( )
void Popup ( string  propertyPath,
GUIContent[]  options,
string  label = null 
)
protected
bool PropertyField ( string  propertyPath,
string  label = null,
string  tooltip = null 
)
protected
bool PropertyField ( SerializedProperty  prop,
string  label = null,
string  tooltip = null 
)
protected
bool PropertyField ( SerializedProperty  prop,
string  label,
string  tooltip,
string  propertyPath 
)
private

Member Data Documentation

System.Collections.Generic.Dictionary<string, string> cachedTooltips
staticprivate
System.Collections.Generic.Dictionary<string, string> cachedURLs
staticprivate
GUIContent content = new GUIContent()
staticprivate
Dictionary<string, string> localTooltips = new Dictionary<string, string>()
private
GUILayoutOption [] noOptions = new GUILayoutOption[0]
staticprivate
Dictionary<string, SerializedProperty> props = new Dictionary<string, SerializedProperty>()
private
GUIContent showInDocContent = new GUIContent("Show in online documentation", "")
staticprivate

The documentation for this class was generated from the following file: