Chunk
Class in Nostalgia / Inherits from: UnityEngine.MonoBehaviour
Description
Rendering chunk of Map.
Fields
| Field Name | Description |
|---|---|
| dirty | The dirty. |
| position | The position. |
Properties
| Property Name | Description |
|---|---|
| cachedMesh | チャンクに生成されたMesh |
| cellCount | Cell count. |
| hasCells | Whether this chunk has cells |
| map | Map to which they belong. |
| sortingLayerID | Gets or sets the sorting layer ID. |
| sortingOrder | Gets or sets the sorting order. |
Methods
| Method Name | Description |
|---|---|
| GetCell | Get cell. |
| HasCells | Has the Cell. |
| UpdateMesh | Updates the mesh. |
Static Fields
| Field Name | Description |
|---|---|
| chunkWidth | Number of cells on each side |
Static Methods
| Method Name | Description |
|---|---|
| CellPosToChunkPos | Convert cell position to chunk position. |
| CellToChunkPos | Convert cell to chunk position. |