|
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 Dictionary< System.Type, System.Type > | ruleEditors |
|
static Dictionary< System.Type, string > | ruleHeaders |
|
static List< System.Type > | ruleTypes |
|
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 |
◆ DrawPositionField()
◆ DrawRotationField()
◆ DrawRules()
◆ DrawUse2DPhysics()
◆ DrawWidthDepthFields()
void DrawWidthDepthFields |
( |
GridGraph |
graph, |
|
|
out int |
newWidth, |
|
|
out int |
newDepth |
|
) |
| |
|
private |
◆ FindRuleEditors()
static void FindRuleEditors |
( |
| ) |
|
|
staticprivate |
◆ GetEditor()
◆ 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 |
◆ 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 |
◆ hexagonSizeContents
GUIContent [] hexagonSizeContents |
|
private |
Initial value:= {
new GUIContent("Hexagon Width", "Distance between two opposing sides on the hexagon"),
new GUIContent("Hexagon Diameter", "Distance between two opposing vertices on the hexagon"),
new GUIContent("Node Size", "Raw node size value, this doesn't correspond to anything particular on the hexagon."),
}
◆ isMouseDown
◆ locked
◆ lockStyle
◆ pivot
◆ ruleEditorInstances
◆ ruleEditors
Dictionary<System.Type, System.Type> ruleEditors |
|
staticprivate |
◆ ruleHeaders
Dictionary<System.Type, string> ruleHeaders |
|
staticprivate |
◆ ruleTypes
List<System.Type> ruleTypes |
|
staticprivate |
◆ 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