A* Pathfinding Project  4.1.11
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 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

◆ CaptureContextClick()

void CaptureContextClick ( string  propertyPath)
private

◆ 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  propertyPath,
int  left,
int  right 
)
protected

◆ IsContextClick()

bool IsContextClick ( )
private

◆ LoadMeta()

static void LoadMeta ( )
staticprivate

◆ Mask()

void Mask ( string  propertyPath,
string []  options,
string  label = null 
)
protected

◆ OnEnable()

virtual void OnEnable ( )
protectedvirtual

Reimplemented in RecastMeshObjEditor, and BaseAIEditor.

◆ OnInspectorGUI()

sealed override void OnInspectorGUI ( )

◆ Popup()

void Popup ( string  propertyPath,
GUIContent []  options,
string  label = null 
)
protected

◆ 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: