Class AstarPathEditor Extends Editor

Public

Public Methods

Cleans up editor stuff.

Enables editor stuff.

RunTask (action)
SaveGraphsAndUndo (et=…, eventCommand="")
SerializeGraphs ([settings], checksum)

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

Public Static Methods

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

Returns a version with all fields fully defined.

Loads GUISkin and sets up styles.

Public Variables

isPrefab
Public
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)

Make sure every graph has a graph editor.

Creates a GraphEditor for a graph.

DrawColorSlider (left, right, editable)
DrawGraph (graphEditor)

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

DrawGraphHeader (graphEditor)
DrawGraphInfoArea (graphEditor)

Draws the main area in the inspector.

Draws optimizations settings.

DuplidateGraph (graph)

Searches in the current assembly for GraphEditor and NavGraph types.

Reads settings frome EditorPrefs.

Hide position/rotation/scale tools for the AstarPath object.

Called when an undo or redo operation has been performed.

RemoveGraph (graph)
SaveGraphData (bytes, target=null)
aboutArea
Private
addGraphsArea
Private
alwaysVisibleArea
Private
colorSettingsArea
Private
defines

Holds defines found in script files, used for optimizations.

Private
editorSettingsArea
Private
graphDeleteButtonStyle
Private Static
graphDuplicateButtonStyle
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
showCustomAreaColors
Private Static
showSettings
Private Static
showTagNames
Private Static
stylesLoaded
Private Static
tagsArea
Private