RB.MapSize
Property - Static Read Only
Type
Vector2i
Description
The tilemap maximum size, as given in IRetroBlitGame.QueryHardware. The size is specified in tile counts.
The size represents the maximum tilemap size that can be loaded into memory at one time. Very large, or infinite maps can be implemented by paging chunks of the map into the tilemap space defined by RB.MapSize. See the Demo Reel for an example of an infinite map.
Example
void FillMap(int layer, string spriteName) { var size = RB.MapSize; for (int y = 0; y < size.height; y++) { for (int x = 0; x < size.width; x++) { RB.MapSpriteSet(layer, new Vector2i(x, y), spriteName); } } } |
See Also
IRetroBlitGame.QueryHardware
See Docs
Features - Tilemaps
|