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

Public Member Functions

override void OnInspectorGUI (NavGraph target)
 Override to implement graph inspectors. More...
 
- Public Member Functions inherited from GridGraphEditor
override void OnSceneGUI (NavGraph target)
 Override to implement scene GUI drawing for the graph. More...
 
- Public Member Functions inherited from GraphEditor
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 ()
 
bool ToggleGroup (string label, bool value)
 Draws a toggle with a bold label to the right. More...
 

Protected Member Functions

override void DrawCollisionEditor (GraphCollision collision)
 Draws the inspector for a GraphCollision class . More...
 
override void DrawCutCorners (GridGraph graph)
 
override void DrawJPS (GridGraph graph)
 
override void DrawMaxClimb (GridGraph graph)
 
override void DrawMiddleSection (GridGraph graph)
 
override void DrawNeighbours (GridGraph graph)
 
override void DrawTextureData (GridGraph.TextureData data, GridGraph graph)
 Draws settings for using a texture as source for a grid. More...
 
override void DrawUse2DPhysics (GraphCollision collision)
 
- Protected Member Functions inherited from GridGraphEditor
virtual void Draw2DMode (GridGraph graph)
 
void DrawErosion (GridGraph graph)
 
void DrawMaxSlope (GridGraph graph)
 

Additional Inherited Members

- Public Types inherited from GridGraphEditor
enum  GridPivot {
  Center, TopLeft, TopRight, BottomLeft,
  BottomRight
}
 
- Static Public Member Functions inherited from GridGraphEditor
static GridPivot PivotPointSelector (GridPivot pivot)
 
static Vector3 RoundVector3 (Vector3 v)
 Rounds a vector's components to multiples of 0.5 (i.e 0.5, 1.0, 1.5, etc.) if very close to them. More...
 
- Static Public Member Functions inherited from GraphEditor
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 inherited from GridGraphEditor
bool isMouseDown
 
bool locked = true
 
GridPivot pivot
 
bool showExtra
 
- Public Attributes inherited from GraphEditor
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...
 
- Static Protected Attributes inherited from GridGraphEditor
static readonly string [] ChannelUseNames = { "None", "Penalty", "Height", "Walkability and Penalty" }
 

Member Function Documentation

◆ DrawCollisionEditor()

override void DrawCollisionEditor ( GraphCollision  collision)
protectedvirtual

Draws the inspector for a GraphCollision class .

Reimplemented from GridGraphEditor.

◆ DrawCutCorners()

override void DrawCutCorners ( GridGraph  graph)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ DrawJPS()

override void DrawJPS ( GridGraph  graph)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ DrawMaxClimb()

override void DrawMaxClimb ( GridGraph  graph)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ DrawMiddleSection()

override void DrawMiddleSection ( GridGraph  graph)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ DrawNeighbours()

override void DrawNeighbours ( GridGraph  graph)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ DrawTextureData()

override void DrawTextureData ( GridGraph.TextureData  data,
GridGraph  graph 
)
protectedvirtual

Draws settings for using a texture as source for a grid.

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Reimplemented from GridGraphEditor.

◆ DrawUse2DPhysics()

override void DrawUse2DPhysics ( GraphCollision  collision)
protectedvirtual

Reimplemented from GridGraphEditor.

◆ OnInspectorGUI()

override void OnInspectorGUI ( NavGraph  target)
virtual

Override to implement graph inspectors.

Reimplemented from GridGraphEditor.


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