|
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 bool | LoadStyles () |
| Loads GUISkin and sets up styles.
|
|
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.
|
|
void AddGraph |
( |
System.Type |
type | ) |
|
|
private |
static int ByteArrayHash |
( |
byte[] |
arr | ) |
|
|
staticprivate |
void CheckGraphEditors |
( |
bool |
forceRebuild = false | ) |
|
|
private |
Make sure every graph has a graph editor.
Creates a GraphEditor for a graph.
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 |
( |
| ) |
|
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 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
Searches in the current assembly for GraphEditor and NavGraph types.
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 |
( |
| ) |
|
|
static |
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 |
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.
List of all graph editors available (e.g GridGraphEditor)
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
True if the user is forcing dark skin to be used.
Used to make sure correct behaviour when handling undos.
int lastUndoGroup = -1000 |
|
staticprivate |
bool optimizationSettings |
|
staticprivate |
const string scriptsFolder = "Assets/AstarPathfindingProject" |
|
private |
Is the 'Add New Graph' menu open.
bool showSerializationSettings |
|
staticprivate |
GUIStyle topBoxHeaderStyle |
|
staticprivate |
Toggle to use a darker skin which matches the Unity Pro dark skin.
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