Class LayerGridGraphEditor Extends GridGraphEditor

Public

Inherited Public Members

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

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

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

Draws common graph settings.

OnInspectorGUI (target)

Override to implement graph inspectors.

OnSceneGUI (target)

Override to implement scene GUI drawing for the graph.

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.

collisionPreviewOpen

Shows the preview for the collision testing options.

Public
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
isMouseDown
Public
locked
Public
pivot
Public
selectedTilemap
Public
showExtra
Public
target

NavGraph this editor is exposing.

Public

Private/Protected Members

Draw2DMode (graph)
DrawCollisionEditor (collision)

Draws the inspector for a GraphCollision class.

DrawCutCorners (graph)
DrawErosion (graph)
DrawMaxClimb (graph)
DrawMaxSlope (graph)
DrawNeighbours (graph)
DrawRules (graph)
DrawUse2DPhysics (collision)