A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
GridGraphEditor Class Reference
+ Inheritance diagram for GridGraphEditor:
+ Collaboration diagram for GridGraphEditor:

Public Types

enum  GridPivot {
  Center, TopLeft, TopRight, BottomLeft,
  BottomRight
}
 

Public Member Functions

void DeSerializeSettings (NavGraph target, AstarSerializer serializer)
 
void DrawTextureData (GridGraph.TextureData data, GridGraph graph)
 Draws settings for using a texture as source for a grid.
 
int IntField (string label, int value, int offset, int adjust, out Rect r, out bool selected)
 Draws an integer field.
 
int IntField (GUIContent label, int value, int offset, int adjust, out Rect r, out bool selected)
 Draws an integer field.
 
override void OnInspectorGUI (NavGraph target)
 Override to implement graph inspectors.
 
override void OnSceneGUI (NavGraph target)
 Override to implement scene GUI drawing for the graph.
 
UnityEngine.Object ResourcesField (string label, UnityEngine.Object obj, System.Type type)
 Displays an object field for objects which must be in the 'Resources' folder.
 
void SaveReferenceTexture (GridGraph graph)
 
void SerializeSettings (NavGraph target, AstarSerializer serializer)
 
void SnapSizeToNodes (int newWidth, int newDepth, GridGraph graph)
 
- Public Member Functions inherited from GraphEditor
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 ()
 
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.
 
- Public Member Functions inherited from ISerializableGraphEditor
void DeSerializeSettings (NavGraph target, AstarSerializer serializer)
 
void SerializeSettings (NavGraph target, AstarSerializer serializer)
 

Static Public Member Functions

static GridPivot PivotPointSelector (GridPivot pivot)
 
- Static Public Member Functions inherited from GraphEditor
static void DrawWireCube (Vector3 center, Vector3 size)
 Draws a wire cube using handles.
 

Public Attributes

bool isMouseDown = false
 
bool locked = true
 
GridPivot pivot
 
bool showExtra = false
 
bool textureVisible = true
 Should textures be allowed to be used.
 
- Public Attributes inherited from GraphEditor
AstarPathEditor editor
 
- Public Attributes inherited from GraphEditorBase
NavGraph target
 NavGraph this editor is exposing.
 

Static Public Attributes

static readonly string[] ChannelUseNames = new string[4] {"None","Penalty","Height","Walkability and Penalty"}
 

Private Attributes

float newNodeSize
 
Node node1
 
Vector3 savedCenter
 
Matrix4x4 savedMatrix
 

Member Function Documentation

void DrawTextureData ( GridGraph.TextureData  data,
GridGraph  graph 
)

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

UnityEngine.Object ResourcesField ( string  label,
UnityEngine.Object  obj,
System.Type  type 
)

Displays an object field for objects which must be in the 'Resources' folder.

If the selected object is not in the resources folder, a warning message with a Fix button will be shown

+ Here is the call graph for this function:

Member Data Documentation

bool textureVisible = true

Should textures be allowed to be used.

This can be set to false by inheriting graphs not implemeting that feature


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