Weighted Random Tiles are tiles which randomly pick a sprite from a given list of sprites and a target location, and displays that sprite. The sprites can be weighted with a value to change its probability of appearing. The Sprite displayed for the Tile is randomized based on its location and will be fixed for that particular location.
More...
|
override void | GetTileData (Vector3Int position, ITilemap tilemap, ref TileData tileData) |
| Retrieves any tile rendering data from the scripted tile. More...
|
|
Weighted Random Tiles are tiles which randomly pick a sprite from a given list of sprites and a target location, and displays that sprite. The sprites can be weighted with a value to change its probability of appearing. The Sprite displayed for the Tile is randomized based on its location and will be fixed for that particular location.
◆ GetTileData()
override void MoreMountains.TopDownEngine.WeightedRandomTile.GetTileData |
( |
Vector3Int |
position, |
|
|
ITilemap |
tilemap, |
|
|
ref TileData |
tileData |
|
) |
| |
Retrieves any tile rendering data from the scripted tile.
- Parameters
-
position | Position of the Tile on the Tilemap. |
tilemap | The Tilemap the tile is present on. |
tileData | Data to render the tile. |
◆ Sprites
WeightedSprite [] MoreMountains.TopDownEngine.WeightedRandomTile.Sprites |
The Sprites used for randomizing output.
The documentation for this class was generated from the following file: