A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
AstarColor Class Reference

Stores editor colors. More...

Public Member Functions

void OnEnable ()
 Pushes all local variables out to static ones.
 

Static Public Member Functions

static Color GetAreaColor (int area)
 Returns an color for an area, uses both user set ones and calculated.
 

Public Attributes

Color[] _AreaColors
 Holds user set area colors.
 
Color _BoundsHandles
 
Color _ConnectionHighLerp
 
Color _ConnectionLowLerp
 
Color _MeshColor
 
Color _MeshEdgeColor
 
Color _NodeConnection
 
Color _UnwalkableNode
 

Static Public Attributes

static Color BoundsHandles = new Color (0.29F,0.454F,0.741F,0.9F)
 
static Color ConnectionHighLerp = new Color (1,0,0,0.5F)
 
static Color ConnectionLowLerp = new Color (0,1,0,0.5F)
 
static Color MeshColor = new Color (0,0,0,0.5F)
 
static Color MeshEdgeColor = new Color (0,0,0,0.5F)
 
static Color NodeConnection = new Color (1,1,1,0.9F)
 
static Color UnwalkableNode = new Color (1,0,0,0.5F)
 

Static Private Attributes

static Color[] AreaColors
 Holds user set area colors.
 

Detailed Description

Stores editor colors.

Member Function Documentation

static Color GetAreaColor ( int  area)
static

Returns an color for an area, uses both user set ones and calculated.

If the user has set a color for the area, it is used, but otherwise the color is calculated using Mathfx::IntToColor

See Also
AreaColors

+ Here is the call graph for this function:

Member Data Documentation

Color [] _AreaColors

Holds user set area colors.

Use GetAreaColor to get an area color

Color [] AreaColors
staticprivate

Holds user set area colors.

Use GetAreaColor to get an area color


The documentation for this class was generated from the following file: