A* Pathfinding Project  4.1.12
The A* Pathfinding Project for Unity 3D
GraphEditor Class Reference

Public Member Functions

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

Static Public Member Functions

static bool FixLabel (string label, string buttonLabel="Fix", int buttonWidth=40)
 Draws a small help box with a 'Fix' button to the right. More...
 
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. More...
 
static bool ToggleGroup (GUIContent label, bool value)
 Draws a toggle with a bold label to the right. More...
 

Public Attributes

AstarPathEditor editor
 
FadeArea fadeArea
 Stores if the graph is visible or not in the inspector. More...
 
FadeArea infoFadeArea
 Stores if the graph info box is visible or not in the inspector. More...
 
- Public Attributes inherited from GraphEditorBase
NavGraph target
 NavGraph this editor is exposing. More...
 

Member Function Documentation

◆ AutoScan()

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)

◆ FixLabel()

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

◆ ObjectField() [1/2]

static Object ObjectField ( string  label,
Object  obj,
System.Type  objType,
bool  allowSceneObjects 
)
static

◆ ObjectField() [2/2]

static Object ObjectField ( GUIContent  label,
Object  obj,
System.Type  objType,
bool  allowSceneObjects 
)
static

◆ OnBaseInspectorGUI()

void OnBaseInspectorGUI ( NavGraph  target)

Draws common graph settings.

◆ OnEnable()

virtual void OnEnable ( )
virtual

◆ OnInspectorGUI()

virtual void OnInspectorGUI ( NavGraph  target)
virtual

Override to implement graph inspectors.

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

◆ OnSceneGUI()

virtual void OnSceneGUI ( NavGraph  target)
virtual

Override to implement scene GUI drawing for the graph.

Reimplemented in GridGraphEditor.

◆ Separator()

static void Separator ( )
static

Draws a thin separator line.

◆ ToggleGroup() [1/2]

bool ToggleGroup ( string  label,
bool  value 
)

Draws a toggle with a bold label to the right.

Does not enable or disable GUI

◆ ToggleGroup() [2/2]

static bool ToggleGroup ( GUIContent  label,
bool  value 
)
static

Draws a toggle with a bold label to the right.

Does not enable or disable GUI

Member Data Documentation

◆ editor

◆ fadeArea

FadeArea fadeArea

Stores if the graph is visible or not in the inspector.

◆ infoFadeArea

FadeArea infoFadeArea

Stores if the graph info box is visible or not in the inspector.


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