Class GridGraphEditor Extends GraphEditor

Public

Public Methods

OnInspectorGUI (target)

Override to implement graph inspectors.

OnSceneGUI (target)

Override to implement scene GUI drawing for the graph.

Public Static Methods

Public Variables

collisionPreviewOpen

Shows the preview for the collision testing options.

Public
isMouseDown
Public
locked
Public
pivot
Public
selectedTilemap
Public
showExtra
Public

Public Enums

GridPivot
Public

Inherited Public Members

FixLabel (label, buttonLabel=…, buttonWidth=40)

Draws a small help box with a 'Fix' button to the right.

ObjectField (label, obj, objType, allowSceneObjects, assetsMustBeInResourcesFolder)

Draws common graph settings.

Rounds a vector's components to multiples of 0.5 (i.e 0.5, 1.0, 1.5, etc.) if very close to them.

Draws a thin separator line.

ToggleGroup (label, value)

Draws a toggle with a bold label to the right.

editor
Public
fadeArea

Stores if the graph is visible or not in the inspector.

Public
infoFadeArea

Stores if the graph info box is visible or not in the inspector.

Public
target

NavGraph this editor is exposing.

Public

Private/Protected Members

Draw2DMode (graph)
DrawArc (center, radius, startAngle, endAngle)
DrawCollisionEditor (collision)

Draws the inspector for a GraphCollision class.

DrawCollisionPreview (collision)
DrawCutCorners (graph)
DrawDashedLine (a, b, dashLength)
DrawErosion (graph)
DrawLastSection (graph)
DrawLine (a, b)
DrawMaxClimb (graph)
DrawMaxSlope (graph)
DrawNeighbours (graph)
DrawRules (graph)
DrawUse2DPhysics (collision)
DrawWidthDepthFields (graph, newWidth, newDepth)
GetEditor (rule)
GetPath (current)
IsAdvanced (graph)
IsHexagonal (graph)
IsIsometric (graph)
NormalizedPivotPoint (graph, pivot)
arcBuffer
Private
cachedSceneGridLayouts
Private Static
cachedSceneGridLayoutsTimestamp
Private Static
gridPivotSelectBackground

Cached gui style.

Private Static
gridPivotSelectButton

Cached gui style.

Private Static
handlePoints
Private Static Readonly
hexagonSizeContents
Private
interpolatedGridWidthInNodes
Private
lastTime
Private
lineBuffer
Private
lockStyle

Cached gui style.

Private Static
ruleEditorInstances
Private
ruleEditors
Private Static
ruleHeaders
Private Static
ruleTypes
Private Static
savedDimensions
Private
savedNodeSize
Private
savedTransform
Private