A* Pathfinding Project
3.8.2
The A* Pathfinding Project for Unity 3D
|
Editor for the RecastGraph. More...
Editor for the RecastGraph.
Classes | |
struct | GizmoTile |
Holds a surface and an outline visualization for a navmesh tile. More... | |
Public Types | |
enum | UseTiles { UseTiles = 0, DontUseTiles = 1 } |
Public Member Functions | |
override void | OnDrawGizmos () |
Override to implement scene Gizmos drawing for the graph editor. | |
override void | OnEnable () |
override void | OnInspectorGUI (NavGraph target) |
Override to implement graph inspectors. | |
override void | UnloadGizmoMeshes () |
Public Member Functions inherited from GraphEditor | |
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 | 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. | |
Static Public Member Functions | |
static void | ExportToFile (RecastGraph target) |
Exports the INavmesh graph to a .obj file. | |
Static Public Member Functions inherited from GraphEditor | |
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. | |
Static Public Attributes | |
static bool | tagMaskFoldout |
Private Member Functions | |
Mesh | CreateNavmeshSurfaceVisualization (RecastGraph.NavmeshTile tile) |
Creates a mesh of the surfaces of the navmesh for use in OnDrawGizmos in the editor. | |
void | UpdateDebugMeshes () |
Updates the meshes used in OnDrawGizmos to visualize the navmesh. | |
Static Private Member Functions | |
static Mesh | CreateNavmeshOutlineVisualization (RecastGraph.NavmeshTile tile) |
Creates an outline of the navmesh for use in OnDrawGizmos in the editor. | |
Private Attributes | |
List< GizmoTile > | gizmoMeshes = new List<GizmoTile>() |
Meshes for visualizing the navmesh. | |
Static Private Attributes | |
static Material | navmeshMaterial |
Material to use for the navmesh in the editor. | |
static Material | navmeshOutlineMaterial |
Material to use for the navmeshe outline in the editor. | |
Additional Inherited Members | |
Public Attributes inherited from GraphEditor | |
AstarPathEditor | editor |
enum UseTiles |
|
staticprivate |
Creates an outline of the navmesh for use in OnDrawGizmos in the editor.
|
private |
Creates a mesh of the surfaces of the navmesh for use in OnDrawGizmos in the editor.
|
static |
Exports the INavmesh graph to a .obj file.
|
virtual |
Override to implement scene Gizmos drawing for the graph editor.
Reimplemented from GraphEditor.
|
virtual |
Reimplemented from GraphEditor.
|
virtual |
Override to implement graph inspectors.
Reimplemented from GraphEditor.
|
virtual |
Reimplemented from GraphEditor.
|
private |
Updates the meshes used in OnDrawGizmos to visualize the navmesh.
Meshes for visualizing the navmesh.
Used in OnDrawGizmos.
|
staticprivate |
Material to use for the navmesh in the editor.
|
staticprivate |
Material to use for the navmeshe outline in the editor.
|
static |