A* Pathfinding Project  4.1.2
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 name, int left, int right)
 
virtual void OnEnable ()
 
bool PropertyField (string name, string label=null, string tooltip=null)
 

Private Member Functions

string FindLocalTooltip (string path)
 

Static Private Member Functions

static string FindTooltip (string path)
 

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 GUIContent content = new GUIContent()
 
static GUILayoutOption[] noOptions = new GUILayoutOption[0]
 

Member Function Documentation

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
void IntSlider ( string  name,
int  left,
int  right 
)
protected
virtual void OnEnable ( )
protectedvirtual

Reimplemented in BaseAIEditor.

sealed override void OnInspectorGUI ( )
bool PropertyField ( string  name,
string  label = null,
string  tooltip = null 
)
protected

Member Data Documentation

System.Collections.Generic.Dictionary<string, string> cachedTooltips
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

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