|
bool | AutoScan () |
| Called by editor scripts to rescan the graphs e.g when the user moved a graph.
|
|
void | DrawCollisionEditor (GraphCollision collision) |
| Draws the inspector for a GraphCollision class .
|
|
bool | FixLabel (string label, string buttonLabel="Fix", int buttonWidth=40) |
| Draws a small help box with a 'Fix' button to the right.
|
|
void | HelpBox (string label) |
| Draws a small help box.
|
|
Object | ObjectField (string label, Object obj, System.Type objType, bool allowSceneObjects) |
|
Object | ObjectField (GUIContent label, Object obj, System.Type objType, bool allowSceneObjects) |
|
void | OnBaseInspectorGUI (NavGraph target) |
| Draws common graph settings.
|
|
virtual void | OnDestroy () |
|
virtual void | OnDisable () |
|
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.
|
|
void | Separator () |
| Draws a thin separator line.
|
|
bool | ToggleGroup (string label, bool value) |
| Draws a toggle with a bold label to the right.
|
|
bool | ToggleGroup (GUIContent label, bool value) |
| Draws a toggle with a bold label to the right.
|
|
|
static void | DrawWireCube (Vector3 center, Vector3 size) |
| Draws a wire cube using handles.
|
|
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.
bool FixLabel |
( |
string |
label, |
|
|
string |
buttonLabel = "Fix" , |
|
|
int |
buttonWidth = 40 |
|
) |
| |
Draws a small help box with a 'Fix' button to the right.
- Returns
- Boolean - Returns true if the button was clicked
void HelpBox |
( |
string |
label | ) |
|
Draws a small help box.
Works with EditorGUI.indentLevel
Object ObjectField |
( |
string |
label, |
|
|
Object |
obj, |
|
|
System.Type |
objType, |
|
|
bool |
allowSceneObjects |
|
) |
| |
Object ObjectField |
( |
GUIContent |
label, |
|
|
Object |
obj, |
|
|
System.Type |
objType, |
|
|
bool |
allowSceneObjects |
|
) |
| |
void OnBaseInspectorGUI |
( |
NavGraph |
target | ) |
|
Draws common graph settings.
virtual void OnDestroy |
( |
| ) |
|
|
virtual |
virtual void OnDisable |
( |
| ) |
|
|
virtual |
virtual void OnDrawGizmos |
( |
| ) |
|
|
virtual |
virtual void OnEnable |
( |
| ) |
|
|
virtual |
virtual void OnInspectorGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
virtual void OnSceneGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
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
bool ToggleGroup |
( |
GUIContent |
label, |
|
|
bool |
value |
|
) |
| |
Draws a toggle with a bold label to the right.
Does not enable or disable GUI
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Editor/GraphEditors/GraphEditor.cs