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
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

aboutArea
Private Static
AddGraph (type)
Private
addGraphsArea
Private Static
alwaysVisibleArea
Private Static
ByteArrayHash (arr)

Hashes the contents of a byte array.

Private Static
CheckGraphEditors (forceRebuild=…)

Make sure every graph has a graph editor.

Private
colorSettingsArea
Private Static
CreateFadeAreas ()
Private
CreateGraphEditor (graph)

Creates a GraphEditor for a graph.

Private
customAreaColorsOpen
Private Static
defines

Holds defines found in script files, used for optimizations.

Private
DeserializeGraphs ()
Private
DeserializeGraphs (bytes)
Private
DisableJs ()

Disables JS support if it was enabled.

Private Static
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
editorSettingsArea
Private Static
editTags
Private Static
EnableJs ()

Enables JS support.

Private Static
FindGraphTypes ()

Searches in the current assembly for GraphEditor and NavGraph types.

Private
GetAstarEditorSettings ()

Reads settings frome EditorPrefs.

Private
graphDeleteButtonStyle
Private Static
graphEditNameButtonStyle
Private Static
graphEditors

List of all graph editors for the graphs.

Private
graphEditorTypes

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

Private Static
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
graphsArea
Private Static
graphTypes
Private
HandleUndo ()
Private
ignoredChecksum

Used to make sure correct behaviour when handling undos.

Private Static
IsJsEnabled ()

Checks if JS support is enabled.

Private Static
lastUndoGroup
Private Static
level0AreaStyle
Private Static
level0LabelStyle
Private Static
level1AreaStyle
Private Static
level1LabelStyle
Private Static
LoadStyles ()

Loads GUISkin and sets up styles.

Private Static
OnUndoRedoPerformed ()

Called when an undo or redo operation has been performed.

Private
optimizationSettingsArea
Private Static
RemoveGraph (graph)
Private
RepaintSceneView ()

Repaints Scene View.

Private
SaveGraphData (bytes, target=null)
Private
scriptsFolder
Private
serializationSettingsArea
Private Static
SerializeIfDataChanged ()
Private
SetAstarEditorSettings ()
Private
settingsArea
Private Static
showSettings
Private Static
stylesLoaded
Private Static
tagsArea
Private Static