A* Pathfinding Project  4.1.19
The A* Pathfinding Project for Unity 3D
ProceduralWorld Class Reference

Example script for generating an infinite procedural world. More...

Detailed Description

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. More...
 
bool staticBatching = false
 Enable static batching on generated tiles. More...
 
int subTiles = 20
 
Transform target
 
float tileSize = 100
 World size of tiles. More...
 

Private Member Functions

IEnumerator GenerateTiles ()
 
void Start ()
 
void Update ()
 

Private Attributes

Queue< IEnumerator > tileGenerationQueue = new Queue<IEnumerator>()
 
Dictionary< Int2, ProceduralTiletiles = new Dictionary<Int2, ProceduralTile>()
 All tiles. More...
 

Member Function Documentation

◆ GenerateTiles()

IEnumerator GenerateTiles ( )
private

◆ Start()

void Start ( )
private

◆ Update()

void Update ( )
private

Member Data Documentation

◆ prefabs

ProceduralPrefab [] prefabs

◆ range

int range = 1

How far away to generate tiles.

◆ staticBatching

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

◆ subTiles

int subTiles = 20

◆ target

Transform target

◆ tileGenerationQueue

Queue<IEnumerator> tileGenerationQueue = new Queue<IEnumerator>()
private

◆ tiles

Dictionary<Int2, ProceduralTile> tiles = new Dictionary<Int2, ProceduralTile>()
private

All tiles.

◆ tileSize

float tileSize = 100

World size of tiles.


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