Class LineSceneGraphEdge
Defines an edge between two vertices that is used to construct a line graph.
Inheritance
Object
Component
Behaviour
MonoBehaviour
LineSceneGraphEdge
Assembly: AnyPath.dll
Syntax
public class LineSceneGraphEdge : MonoBehaviour
Constructors
LineSceneGraphEdge()
Declaration
public LineSceneGraphEdge()
Fields
a
Endpoint node of this edge.
Declaration
Field Value
b
Endpoint node of this edge.
Declaration
Field Value
directed
Is the edge directional? If true, traversal can only happen from A to B.
Declaration
Field Value
editorOnlyParentGraphCached
Declaration
public LineSceneGraph editorOnlyParentGraphCached
Field Value
enterCost
Extra cost associated with traversing this edge. A higher value discourages A* to use this edge in a path.
Declaration
[Min(0)]
public float enterCost
Field Value
flags
Flags to associate with this edge. This can be used to filter closest location queries and to exclude edges from being considered.
Declaration
[HideInInspector]
public int flags
Field Value
optionalId
Gets mapped to the edge's Id and can be used to map back to some other object (like a MonoBehaviour)
Declaration
Field Value
Methods
GetColoredSegments(LineSceneGraph, int, Vector3, Vector3)
Declaration
public static IEnumerable<(Vector3, Vector3, Color)> GetColoredSegments(LineSceneGraph graph, int flags, Vector3 posA, Vector3 posB)
Parameters
Returns
| Type |
Description |
| IEnumerable<(Vector3, Vector3, Color)> |
|
GetFlagColors(LineSceneGraph, int, List<Color>)
Declaration
public static void GetFlagColors(LineSceneGraph graph, int flags, List<Color> colors)
Parameters
Extension Methods