A* Pathfinding Project  4.1.7
The A* Pathfinding Project for Unity 3D
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 propertyPath, string label=null, string tooltip=null)
 
bool PropertyField (SerializedProperty prop, string label=null, string tooltip=null)
 

Private Member Functions

string FindLocalTooltip (string path)
 
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

◆ Clamp()

void Clamp ( string  name,
float  min,
float  max = float.PositiveInfinity 
)
protected

◆ ClampInt()

void ClampInt ( string  name,
int  min,
int  max = int.MaxValue 
)
protected

◆ FindLocalTooltip()

string FindLocalTooltip ( string  path)
private

◆ FindProperty()

SerializedProperty FindProperty ( string  name)
protected

◆ FindTooltip()

static string FindTooltip ( string  path)
staticprivate

◆ FindURL() [1/2]

static string FindURL ( System.Type  type,
string  path 
)
staticprivate

◆ FindURL() [2/2]

static string FindURL ( string  path)
staticprivate

◆ Inspector()

◆ IntSlider()

void IntSlider ( string  name,
int  left,
int  right 
)
protected

◆ LoadMeta()

static void LoadMeta ( )
staticprivate

◆ OnEnable()

virtual void OnEnable ( )
protectedvirtual

Reimplemented in RecastMeshObjEditor, and BaseAIEditor.

◆ OnInspectorGUI()

sealed override void OnInspectorGUI ( )

◆ PropertyField() [1/3]

bool PropertyField ( string  propertyPath,
string  label = null,
string  tooltip = null 
)
protected

◆ PropertyField() [2/3]

bool PropertyField ( SerializedProperty  prop,
string  label = null,
string  tooltip = null 
)
protected

◆ PropertyField() [3/3]

bool PropertyField ( SerializedProperty  prop,
string  label,
string  tooltip,
string  propertyPath 
)
private

Member Data Documentation

◆ cachedTooltips

System.Collections.Generic.Dictionary<string, string> cachedTooltips
staticprivate

◆ cachedURLs

System.Collections.Generic.Dictionary<string, string> cachedURLs
staticprivate

◆ content

GUIContent content = new GUIContent()
staticprivate

◆ localTooltips

Dictionary<string, string> localTooltips = new Dictionary<string, string>()
private

◆ noOptions

GUILayoutOption [] noOptions = new GUILayoutOption[0]
staticprivate

◆ props

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

◆ showInDocContent

GUIContent showInDocContent = new GUIContent("Show in online documentation", "")
staticprivate

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