◆ AddGraph()
void AddGraph |
( |
System.Type |
type | ) |
|
|
private |
◆ ByteArrayHash()
static int ByteArrayHash |
( |
byte [] |
arr | ) |
|
|
staticprivate |
Hashes the contents of a byte array.
◆ CheckGraphEditors()
void CheckGraphEditors |
( |
bool |
forceRebuild = false | ) |
|
|
private |
Make sure every graph has a graph editor.
◆ CreateFadeAreas()
◆ CreateGraphEditor()
◆ DeserializeGraphs() [1/2]
void DeserializeGraphs |
( |
| ) |
|
|
private |
◆ DeserializeGraphs() [2/2]
void DeserializeGraphs |
( |
byte [] |
bytes | ) |
|
|
private |
◆ DisableJs()
static void DisableJs |
( |
| ) |
|
|
staticprivate |
Disables JS support if it was enabled.
This is done by restructuring folders in the project
◆ DiscardFirstRun()
static void DiscardFirstRun |
( |
| ) |
|
|
staticprivate |
Discards the first run window.
It will not be shown for this project again
◆ DrawAboutArea()
◆ DrawColorSettings()
void DrawColorSettings |
( |
| ) |
|
|
private |
◆ DrawColorSlider()
static void DrawColorSlider |
( |
ref float |
left, |
|
|
ref float |
right, |
|
|
bool |
editable |
|
) |
| |
|
staticprivate |
◆ DrawDebugSettings()
void DrawDebugSettings |
( |
| ) |
|
|
private |
◆ DrawEditorSettings()
void DrawEditorSettings |
( |
| ) |
|
|
private |
◆ DrawFirstRun()
Draws the first run dialog.
Asks if the user wants to enable JS support
◆ DrawGraph()
Draws the inspector for the given graph with the given graph editor.
◆ DrawGraphHeader()
◆ DrawGraphInfoArea()
◆ DrawHeuristicOptimizationSettings()
void DrawHeuristicOptimizationSettings |
( |
| ) |
|
|
private |
◆ DrawMainArea()
Draws the main area in the inspector.
◆ DrawOptimizationSettings()
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
◆ DrawPathfindingSettings()
void DrawPathfindingSettings |
( |
| ) |
|
|
private |
◆ DrawSerializationSettings()
void DrawSerializationSettings |
( |
| ) |
|
|
private |
◆ DrawSettings()
◆ DrawTagSettings()
◆ EditTags()
Opens the A* Inspector and shows the section for editing tags.
◆ EnableJs()
Enables JS support.
This is done by restructuring folders in the project
◆ FindGraphTypes()
◆ FullyDefinedVersion()
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
◆ GetAstarEditorSettings()
void GetAstarEditorSettings |
( |
| ) |
|
|
private |
Reads settings frome EditorPrefs.
◆ HandleUndo()
◆ IsJsEnabled()
static bool IsJsEnabled |
( |
| ) |
|
|
staticprivate |
Checks if JS support is enabled.
This is done by checking if the directory 'Assets/AstarPathfindingEditor/Editor' exists
◆ LoadGraphs()
Load graphs from serialized data.
◆ LoadStyles()
static bool LoadStyles |
( |
| ) |
|
|
staticprivate |
Loads GUISkin and sets up styles.
- See also
- EditorResourceHelper.LocateEditorAssets
- Returns
- True if all styles were found, false if there was an error somewhere
◆ MenuScan()
◆ OnDisable()
◆ OnEnable()
Enables editor stuff.
Loads graphs, reads settings and sets everything up
◆ OnInspectorGUI()
override void OnInspectorGUI |
( |
| ) |
|
◆ OnSceneGUI()
◆ OnUndoRedoPerformed()
void OnUndoRedoPerformed |
( |
| ) |
|
|
private |
Called when an undo or redo operation has been performed.
◆ RemoveGraph()
◆ RepaintSceneView()
void RepaintSceneView |
( |
| ) |
|
|
private |
Repaints Scene View.
- Warning
- Uses Undocumented Unity Calls (should be safe for Unity 3.x though)
◆ SaveGraphData()
TextAsset SaveGraphData |
( |
byte [] |
bytes, |
|
|
TextAsset |
target = null |
|
) |
| |
|
private |
◆ SaveGraphsAndUndo()
void SaveGraphsAndUndo |
( |
EventType |
et = EventType.Used , |
|
|
string |
eventCommand = "" |
|
) |
| |
◆ SerializeGraphs() [1/2]
byte [] SerializeGraphs |
( |
out uint |
checksum | ) |
|
◆ SerializeGraphs() [2/2]
◆ SerializeIfDataChanged()
void SerializeIfDataChanged |
( |
| ) |
|
|
private |
◆ SetAstarEditorSettings()
void SetAstarEditorSettings |
( |
| ) |
|
|
private |
◆ UseDefaultMargins()
override bool UseDefaultMargins |
( |
| ) |
|
Tell Unity that we want to use the whole inspector width.
◆ aboutArea
◆ addGraphsArea
◆ alwaysVisibleArea
◆ alwaysVisibleTopLevelArea
◆ colorSettingsArea
◆ customAreaColorsOpen
bool customAreaColorsOpen |
|
staticprivate |
◆ defines
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
◆ editorSettingsArea
◆ editTags
◆ firstRun
Used to show notifications to the user the first time the system is used in a project.
◆ graphDeleteButtonStyle
GUIStyle graphDeleteButtonStyle |
|
staticprivate |
◆ graphEditNameButtonStyle
GUIStyle graphEditNameButtonStyle |
|
staticprivate |
◆ graphEditors
List of all graph editors for the graphs.
◆ graphEditorTypes
◆ graphGizmoButtonStyle
GUIStyle graphGizmoButtonStyle |
|
staticprivate |
◆ graphInfoButtonStyle
GUIStyle graphInfoButtonStyle |
|
staticprivate |
◆ graphNameFocused
Graph editor which has its 'name' field focused.
◆ graphNodeCounts
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
◆ graphsArea
◆ ignoredChecksum
Used to make sure correct behaviour when handling undos.
◆ lastUndoGroup
int lastUndoGroup = -1000 |
|
staticprivate |
◆ level0AreaStyle
◆ level0LabelStyle
GUIStyle level0LabelStyle |
|
staticprivate |
◆ level1AreaStyle
◆ level1LabelStyle
GUIStyle level1LabelStyle |
|
staticprivate |
◆ optimizationSettingsArea
◆ scriptsFolder
const string scriptsFolder = "Assets/AstarPathfindingProject" |
|
private |
◆ serializationSettingsArea
◆ settingsArea
◆ showSettings
◆ stylesLoaded
◆ tagsArea
◆ astarSkin
◆ graphTypes
System.Type [] graphTypes |
|
getprivate |
◆ helpBox
◆ script
◆ thinHelpBox
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Editor/AstarPathEditor.cs