|
override void | OnInspectorGUI (NavGraph target) |
| Override to implement graph inspectors.
|
|
override void | OnSceneGUI (NavGraph target) |
| Override to implement scene GUI drawing for the graph.
|
|
void | SnapSizeToNodes (int newWidth, int newDepth, GridGraph graph) |
|
bool | AutoScan () |
| Called by editor scripts to rescan the graphs e.g when the user moved a graph.
|
|
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.
|
|
|
static readonly string[] | ChannelUseNames = {"None","Penalty","Height","Walkability and Penalty"} |
|
- Enumerator:
Center |
|
TopLeft |
|
TopRight |
|
BottomLeft |
|
BottomRight |
|
virtual void DrawCutCorners |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
virtual void DrawMiddleSection |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
virtual void DrawNeighbours |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
void DrawPenaltyModifications |
( |
GridGraph |
graph | ) |
|
|
private |
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 in LayerGridGraphEditor.
override void OnInspectorGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
override void OnSceneGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
Override to implement scene GUI drawing for the graph.
Reimplemented from GraphEditor.
static Vector3 RoundVector3 |
( |
Vector3 |
v | ) |
|
|
static |
Rounds a vector's components to whole numbers if very close to them.
static void SaveReferenceTexture |
( |
GridGraph |
graph | ) |
|
|
staticprivate |
void SnapSizeToNodes |
( |
int |
newWidth, |
|
|
int |
newDepth, |
|
|
GridGraph |
graph |
|
) |
| |
readonly string [] ChannelUseNames = {"None","Penalty","Height","Walkability and Penalty"} |
|
staticprotected |
GUIStyle gridPivotSelectBackground |
|
staticprivate |
GUIStyle gridPivotSelectButton |
|
staticprivate |
readonly float standardIsometric = 90-Mathf.Atan (1/Mathf.Sqrt(2))*Mathf.Rad2Deg |
|
staticprivate |
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Editor/GraphEditors/GridGeneratorEditor.cs