Class AstarPathEditor Extends Editor

Public

Public Methods

LoadGraphs ()

Load graphs from serialized data.

Public
OnDisable ()

Cleans up editor stuff.

Public
OnEnable ()

Enables editor stuff.

Public
OnInspectorGUI ()
Public
OnSceneGUI ()
Public
SaveGraphsAndUndo (et=…, eventCommand="")
Public
SerializeGraphs (checksum)
Public
SerializeGraphs (settings, checksum)
Public
UseDefaultMargins ()

Tell Unity that we want to use the whole inspector width.

Public

Public Static Methods

EditTags ()

Opens the A* Inspector and shows the section for editing tags.

Public Static
FullyDefinedVersion (v)

Returns a version with all fields fully defined.

Public Static
LoadStyles ()

Loads GUISkin and sets up styles.

Public Static
MenuScan ()

Public Variables

script

AstarPath instance that is being inspected.

Public

Public Static Variables

astarSkin
Public Static
helpBox
Public Static
thinHelpBox
Public Static

Private/Protected Members

AddGraph (type)
Private
ByteArrayHash (arr)

Hashes the contents of a byte array.

Private Static
CheckGraphEditors (forceRebuild=…)

Make sure every graph has a graph editor.

Private
CreateFadeAreas ()
Private
CreateGraphEditor (graph)

Creates a GraphEditor for a graph.

Private
DeserializeGraphs ()
Private
DeserializeGraphs (bytes)
Private
DrawAboutArea ()
Private
DrawColorSettings ()
Private
DrawColorSlider (left, right, editable)
Private Static
DrawDebugSettings ()
Private
DrawEditorSettings ()
Private
DrawGraph (graphEditor)

Draws the inspector for the given graph with the given graph editor.

Private
DrawGraphHeader (graphEditor)
Private
DrawGraphInfoArea (graphEditor)
Private
DrawHeuristicOptimizationSettings ()
Private
DrawMainArea ()

Draws the main area in the inspector.

Private
DrawOptimizationSettings ()

Draws optimizations settings.

Private
DrawPathfindingSettings ()
Private
DrawSceneGUISettings ()
Private
DrawSerializationSettings ()
Private
DrawSettings ()
Private
DrawTagSettings ()
Private
FindGraphTypes ()

Searches in the current assembly for GraphEditor and NavGraph types.

Private
GetAstarEditorSettings ()

Reads settings frome EditorPrefs.

Private
HandleUndo ()
Private
OnUndoRedoPerformed ()

Called when an undo or redo operation has been performed.

Private
RemoveGraph (graph)
Private
RepaintSceneView ()

Repaints Scene View.

Private
SaveGraphData (bytes, target=null)
Private
SerializeIfDataChanged ()
Private
SetAstarEditorSettings ()
Private
aboutArea
Private
addGraphsArea
Private
alwaysVisibleArea
Private
colorSettingsArea
Private
customAreaColorsOpen
Private Static
defines

Holds defines found in script files, used for optimizations.

Private
editTags
Private Static
editorSettingsArea
Private
graphDeleteButtonStyle
Private Static
graphEditNameButtonStyle
Private Static
graphEditorTypes

List of all graph editors available (e.g GridGraphEditor)

Private Static
graphEditors

List of all graph editors for the graphs.

Private
graphGizmoButtonStyle
Private Static
graphInfoButtonStyle
Private Static
graphNameFocused

Graph editor which has its 'name' field focused.

Private
graphNodeCounts

Holds node counts for each graph to avoid calculating it every frame.

Private Static
graphTypes
Private
graphsArea
Private
heuristicOptimizationOptions
Private Readonly
ignoredChecksum

Used to make sure correct behaviour when handling undos.

Private Static
lastUndoGroup
Private Static
level0AreaStyle
Private Static
level0LabelStyle
Private Static
level1AreaStyle
Private Static
level1LabelStyle
Private Static
optimizationSettingsArea
Private
scriptsFolder
Private Static
serializationSettingsArea
Private
settingsArea
Private
showSettings
Private Static
stylesLoaded
Private Static
tagsArea
Private