A* Pathfinding Project
3.8.5
The A* Pathfinding Project for Unity 3D
|
Example script for generating an infinite procedural world. More...
Example script for generating an infinite procedural world.
Classes | |
class | ProceduralPrefab |
class | ProceduralTile |
Public Attributes | |
ProceduralPrefab[] | prefabs |
int | range = 1 |
How far away to generate tiles. | |
bool | staticBatching = false |
Enable static batching on generated tiles. | |
int | subTiles = 20 |
Transform | target |
float | tileSize = 100 |
World size of tiles. | |
Private Member Functions | |
IEnumerator | GenerateTiles () |
void | Start () |
void | Update () |
Private Attributes | |
Queue< IEnumerator > | tileGenerationQueue = new Queue<IEnumerator>() |
Dictionary< Int2, ProceduralTile > | tiles = new Dictionary<Int2, ProceduralTile>() |
All tiles. | |
|
private |
|
private |
|
private |
ProceduralPrefab [] prefabs |
int range = 1 |
How far away to generate tiles.
bool staticBatching = false |
Enable static batching on generated tiles.
Will improve overall FPS, but might cause FPS drops on some frames when static batching is done
int subTiles = 20 |
Transform target |
|
private |
|
private |
All tiles.
float tileSize = 100 |
World size of tiles.