|
static void | EditTags () |
| Opens the A* Inspector and shows the section for editing tags.
|
|
static System.Version | FullyDefinedVersion (System.Version v) |
| Returns a version with all fields fully defined.
|
|
static void | MenuScan () |
|
|
static readonly string | AstarProButton = "A* Pathfinding Project Pro only feature\nThe Pro version can be bought on the A* Pathfinding Project homepage, click here for info" |
|
static readonly string | AstarProTooltip = "A* Pathfinding Project Pro only feature\nThe Pro version can be bought on the A* Pathfinding Project homepage." |
|
static string | editorAssets = "Assets/AstarPathfindingProject/Editor/EditorAssets" |
| Path to the editor assets folder for the A* Pathfinding Project.
|
|
|
static int | ByteArrayHash (byte[] arr) |
| Hashes the contents of a byte array.
|
|
static void | DisableJs () |
| Disables JS support if it was enabled.
|
|
static void | DiscardFirstRun () |
| Discards the first run window.
|
|
static void | DrawColorSlider (ref float left, ref float right, bool editable) |
|
static void | EnableJs () |
| Enables JS support.
|
|
static bool | IsJsEnabled () |
| Checks if JS support is enabled.
|
|
static bool | LoadStyles () |
| Loads GUISkin and sets up styles.
|
|
static bool | LocateEditorAssets () |
| Locates the editor assets folder in case the user has moved it.
|
|
void AddGraph |
( |
System.Type |
type | ) |
|
|
private |
static int ByteArrayHash |
( |
byte[] |
arr | ) |
|
|
staticprivate |
Hashes the contents of a byte array.
void CheckGraphEditors |
( |
bool |
forceRebuild = false | ) |
|
|
private |
Make sure every graph has a graph editor.
void DeserializeGraphs |
( |
| ) |
|
|
private |
void DeserializeGraphs |
( |
byte[] |
bytes | ) |
|
|
private |
static void DisableJs |
( |
| ) |
|
|
staticprivate |
Disables JS support if it was enabled.
This is done by restructuring folders in the project
static void DiscardFirstRun |
( |
| ) |
|
|
staticprivate |
Discards the first run window.
It will not be shown for this project again
void DrawColorSettings |
( |
| ) |
|
|
private |
static void DrawColorSlider |
( |
ref float |
left, |
|
|
ref float |
right, |
|
|
bool |
editable |
|
) |
| |
|
staticprivate |
void DrawDebugSettings |
( |
| ) |
|
|
private |
void DrawEditorSettings |
( |
| ) |
|
|
private |
Draws the first run dialog.
Asks if the user wants to enable JS support
Draws the inspector for the given graph with the given graph editor.
void DrawHeuristicOptimizationSettings |
( |
| ) |
|
|
private |
Draws the main area in the inspector.
void DrawOptimizationSettings |
( |
| ) |
|
|
private |
Draws optimizations settings.
- 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
void DrawPathfindingSettings |
( |
| ) |
|
|
private |
void DrawSerializationSettings |
( |
| ) |
|
|
private |
Opens the A* Inspector and shows the section for editing tags.
Enables JS support.
This is done by restructuring folders in the project
static System.Version FullyDefinedVersion |
( |
System.Version |
v | ) |
|
|
static |
Returns a version with all fields fully defined.
This is used because by default new Version(3,0,0) > new Version(3,0). This is not the desired behaviour so we make sure that all fields are defined here
void GetAstarEditorSettings |
( |
| ) |
|
|
private |
Reads settings frome EditorPrefs.
static bool IsJsEnabled |
( |
| ) |
|
|
staticprivate |
Checks if JS support is enabled.
This is done by checking if the directory 'Assets/AstarPathfindingEditor/Editor' exists
static bool LoadStyles |
( |
| ) |
|
|
staticprivate |
Loads GUISkin and sets up styles.
- See Also
- editorAssets
- Returns
- True if all styles were found, false if there was an error somewhere
static bool LocateEditorAssets |
( |
| ) |
|
|
staticprivate |
Locates the editor assets folder in case the user has moved it.
Draw Editor Gizmos in graphs.
This is called using a delegate OnDrawGizmosCallback in the AstarPath script.
Enables editor stuff.
Loads graphs, reads settings and sets everything up
override void OnInspectorGUI |
( |
| ) |
|
void OnUndoRedoPerformed |
( |
| ) |
|
|
private |
Called when an undo or redo operation has been performed.
void RepaintSceneView |
( |
| ) |
|
|
private |
Repaints Scene View.
- Warning
- Uses Undocumented Unity Calls (should be safe for Unity 3.x though)
TextAsset SaveGraphData |
( |
byte[] |
bytes, |
|
|
TextAsset |
target = null |
|
) |
| |
|
private |
void SaveGraphsAndUndo |
( |
EventType |
et = EventType.Used , |
|
|
string |
eventCommand = "" |
|
) |
| |
byte [] SerializeGraphs |
( |
out uint |
checksum | ) |
|
void SerializeIfDataChanged |
( |
| ) |
|
|
private |
void SetAstarEditorSettings |
( |
| ) |
|
|
private |
void UnloadGizmoMeshes |
( |
| ) |
|
|
private |
Unloads any temporary meshes used for drawing gizmos to prevent memory leaks.
override bool UseDefaultMargins |
( |
| ) |
|
Tell Unity that we want to use the whole inspector width.
readonly string AstarProButton = "A* Pathfinding Project Pro only feature\nThe Pro version can be bought on the A* Pathfinding Project homepage, click here for info" |
|
static |
readonly string AstarProTooltip = "A* Pathfinding Project Pro only feature\nThe Pro version can be bought on the A* Pathfinding Project homepage." |
|
static |
bool customAreaColorsOpen |
|
staticprivate |
Holds defines found in script files, used for optimizations.
- 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
string editorAssets = "Assets/AstarPathfindingProject/Editor/EditorAssets" |
|
static |
Path to the editor assets folder for the A* Pathfinding Project.
If this path turns out to be incorrect, the script will try to find the correct path
- See Also
- LoadStyles
Used to show notifications to the user the first time the system is used in a project.
GUIStyle graphDeleteButtonStyle |
|
staticprivate |
List of all graph editors for the graphs.
GUIStyle graphGizmoButtonStyle |
|
staticprivate |
GUIStyle graphInfoButtonStyle |
|
staticprivate |
Dictionary<NavGraph, KeyValuePair<float, KeyValuePair<int, int> > > graphNodeCounts |
|
staticprivate |
Holds node counts for each graph to avoid calculating it every frame.
Only used for visualization purposes
Used to make sure correct behaviour when handling undos.
int lastUndoGroup = -1000 |
|
staticprivate |
GUIStyle level0LabelStyle |
|
staticprivate |
GUIStyle level1LabelStyle |
|
staticprivate |
const string scriptsFolder = "Assets/AstarPathfindingProject" |
|
private |
System.Type [] graphTypes |
|
getprivate |
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs