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

Public Member Functions

bool AutoScan ()
 Called by editor scripts to rescan the graphs e.g when the user moved a graph.
 
void OnBaseInspectorGUI (NavGraph target)
 Draws common graph settings.
 
virtual void OnDrawGizmos ()
 Override to implement scene Gizmos drawing for the graph editor.
 
virtual void OnEnable ()
 
virtual void OnInspectorGUI (NavGraph target)
 Override to implement graph inspectors.
 
virtual void OnSceneGUI (NavGraph target)
 Override to implement scene GUI drawing for the graph.
 
bool ToggleGroup (string label, bool value)
 Draws a toggle with a bold label to the right.
 
virtual void UnloadGizmoMeshes ()
 

Static Public Member Functions

static void DrawWireCube (Vector3 center, Vector3 size)
 Draws a wire cube using handles.
 
static bool FixLabel (string label, string buttonLabel="Fix", int buttonWidth=40)
 Draws a small help box with a 'Fix' button to the right.
 
static void HelpBox (string label)
 Draws a small help box.
 
static Object ObjectField (string label, Object obj, System.Type objType, bool allowSceneObjects)
 
static Object ObjectField (GUIContent label, Object obj, System.Type objType, bool allowSceneObjects)
 
static void Separator ()
 Draws a thin separator line.
 
static bool ToggleGroup (GUIContent label, bool value)
 Draws a toggle with a bold label to the right.
 

Public Attributes

AstarPathEditor editor
 
- Public Attributes inherited from GraphEditorBase
NavGraph target
 NavGraph this editor is exposing.
 

Member Function Documentation

bool AutoScan ( )

Called by editor scripts to rescan the graphs e.g when the user moved a graph.

Will only scan graphs if not playing and time to scan last graph was less than some constant (to avoid lag with large graphs)

static void DrawWireCube ( Vector3  center,
Vector3  size 
)
static

Draws a wire cube using handles.

static bool FixLabel ( string  label,
string  buttonLabel = "Fix",
int  buttonWidth = 40 
)
static

Draws a small help box with a 'Fix' button to the right.

Returns
Boolean - Returns true if the button was clicked
static void HelpBox ( string  label)
static

Draws a small help box.

Works with EditorGUI.indentLevel

static Object ObjectField ( string  label,
Object  obj,
System.Type  objType,
bool  allowSceneObjects 
)
static
static Object ObjectField ( GUIContent  label,
Object  obj,
System.Type  objType,
bool  allowSceneObjects 
)
static
void OnBaseInspectorGUI ( NavGraph  target)

Draws common graph settings.

virtual void OnDrawGizmos ( )
virtual

Override to implement scene Gizmos drawing for the graph editor.

Reimplemented in RecastGraphEditor, and PointGraphEditor.

virtual void OnEnable ( )
virtual

Reimplemented in RecastGraphEditor.

virtual void OnInspectorGUI ( NavGraph  target)
virtual

Override to implement graph inspectors.

Reimplemented in RecastGraphEditor, GridGraphEditor, LayerGridGraphEditor, PolarGeneratorEditor, NavMeshGraphEditor, and PointGraphEditor.

virtual void OnSceneGUI ( NavGraph  target)
virtual

Override to implement scene GUI drawing for the graph.

Reimplemented in GridGraphEditor.

static void Separator ( )
static

Draws a thin separator line.

bool ToggleGroup ( string  label,
bool  value 
)

Draws a toggle with a bold label to the right.

Does not enable or disable GUI

static bool ToggleGroup ( GUIContent  label,
bool  value 
)
static

Draws a toggle with a bold label to the right.

Does not enable or disable GUI

virtual void UnloadGizmoMeshes ( )
virtual

Reimplemented in RecastGraphEditor.

Member Data Documentation


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