|
static GridPivot | PivotPointSelector (GridPivot pivot) |
|
static Vector3 | RoundVector3 (Vector3 v) |
| Rounds a vector's components to multiples of 0.5 (i.e 0.5, 1.0, 1.5, etc.) if very close to them. More...
|
|
static bool | FixLabel (string label, string buttonLabel="Fix", int buttonWidth=40) |
| Draws a small help box with a 'Fix' button to the right. More...
|
|
static Object | ObjectField (string label, Object obj, System.Type objType, bool allowSceneObjects) |
|
static Object | ObjectField (GUIContent label, Object obj, System.Type objType, bool allowSceneObjects) |
|
static void | Separator () |
| Draws a thin separator line. More...
|
|
static bool | ToggleGroup (GUIContent label, bool value) |
| Draws a toggle with a bold label to the right. More...
|
|
|
static GUIStyle | gridPivotSelectBackground |
| Cached gui style. More...
|
|
static GUIStyle | gridPivotSelectButton |
| Cached gui style. More...
|
|
static readonly Vector3 [] | handlePoints = new [] { new Vector3(0.0f, 0, 0.5f), new Vector3(1.0f, 0, 0.5f), new Vector3(0.5f, 0, 0.0f), new Vector3(0.5f, 0, 1.0f) } |
|
static GUIStyle | lockStyle |
| Cached gui style. More...
|
|
static readonly float | standardDimetric = Mathf.Acos(1/2f)*Mathf.Rad2Deg |
|
static readonly float | standardIsometric = 90-Mathf.Atan(1/Mathf.Sqrt(2))*Mathf.Rad2Deg |
|
◆ GridPivot
Enumerator |
---|
Center | |
TopLeft | |
TopRight | |
BottomLeft | |
BottomRight | |
◆ DetermineGridType()
◆ Draw2DMode()
◆ DrawCollisionEditor()
◆ DrawCutCorners()
virtual void DrawCutCorners |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
◆ DrawErosion()
◆ DrawFirstSection()
◆ DrawInspectorMode()
◆ DrawIsometricField()
◆ DrawJPS()
◆ DrawLastSection()
◆ DrawMaxClimb()
◆ DrawMaxSlope()
◆ DrawMiddleSection()
virtual void DrawMiddleSection |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
◆ DrawNeighbours()
virtual void DrawNeighbours |
( |
GridGraph |
graph | ) |
|
|
protectedvirtual |
◆ DrawPenaltyModifications()
void DrawPenaltyModifications |
( |
GridGraph |
graph | ) |
|
|
private |
◆ DrawPositionField()
◆ DrawRotationField()
◆ DrawTextureData()
Draws settings for using a texture as source for a grid.
- A* Pro Feature:
- This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here
Reimplemented in LayerGridGraphEditor.
◆ DrawUse2DPhysics()
◆ DrawWidthDepthFields()
void DrawWidthDepthFields |
( |
GridGraph |
graph, |
|
|
out int |
newWidth, |
|
|
out int |
newDepth |
|
) |
| |
|
private |
◆ Is2D()
◆ IsAdvanced()
◆ IsHexagonal()
◆ IsIsometric()
◆ NormalizedPivotPoint()
◆ OnInspectorGUI()
override void OnInspectorGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
◆ OnSceneGUI()
override void OnSceneGUI |
( |
NavGraph |
target | ) |
|
|
virtual |
Override to implement scene GUI drawing for the graph.
Reimplemented from GraphEditor.
◆ PivotPointSelector()
◆ RoundVector3()
static Vector3 RoundVector3 |
( |
Vector3 |
v | ) |
|
|
static |
Rounds a vector's components to multiples of 0.5 (i.e 0.5, 1.0, 1.5, etc.) if very close to them.
◆ SaveReferenceTexture()
static void SaveReferenceTexture |
( |
GridGraph |
graph | ) |
|
|
staticprivate |
◆ ChannelUseNames
readonly string [] ChannelUseNames = { "None", "Penalty", "Height", "Walkability and Penalty" } |
|
staticprotected |
◆ gridPivotSelectBackground
GUIStyle gridPivotSelectBackground |
|
staticprivate |
◆ gridPivotSelectButton
GUIStyle gridPivotSelectButton |
|
staticprivate |
◆ handlePoints
readonly Vector3 [] handlePoints = new [] { new Vector3(0.0f, 0, 0.5f), new Vector3(1.0f, 0, 0.5f), new Vector3(0.5f, 0, 0.0f), new Vector3(0.5f, 0, 1.0f) } |
|
staticprivate |
◆ isMouseDown
◆ locked
◆ lockStyle
◆ pivot
◆ savedDimensions
◆ savedNodeSize
◆ savedTransform
◆ showExtra
◆ standardDimetric
readonly float standardDimetric = Mathf.Acos(1/2f)*Mathf.Rad2Deg |
|
staticprivate |
◆ standardIsometric
readonly float standardIsometric = 90-Mathf.Atan(1/Mathf.Sqrt(2))*Mathf.Rad2Deg |
|
staticprivate |
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Editor/GraphEditors/GridGeneratorEditor.cs