A* Pathfinding Project
3.8.5
The A* Pathfinding Project for Unity 3D
|
Used for using a texture as a source for a grid graph. More...
Used for using a texture as a source for a grid graph.
Public Types | |
enum | ChannelUse { None, Penalty, Position, WalkablePenalty } |
Public Member Functions | |
void | Apply (GridNode node, int x, int z) |
Applies the texture to the node. | |
void | Initialize () |
Reads texture data. | |
Public Attributes | |
ChannelUse[] | channels = new ChannelUse[3] |
bool | enabled |
float[] | factors = new float[3] |
Texture2D | source |
Private Member Functions | |
void | ApplyChannel (GridNode node, int x, int z, int value, ChannelUse channelUse, float factor) |
Applies a value to the node using the specified ChannelUse. | |
Private Attributes | |
Color32[] | data |
enum ChannelUse |
void Apply | ( | GridNode | node, |
int | x, | ||
int | z | ||
) |
Applies the texture to the node.
|
private |
Applies a value to the node using the specified ChannelUse.
void Initialize | ( | ) |
Reads texture data.
ChannelUse [] channels = new ChannelUse[3] |
|
private |
bool enabled |
float [] factors = new float[3] |
Texture2D source |