Wiki
Clone wikiRtsPlayMakerActions / Action / PaintRectangle
Paint Rectangle
Paints a rectangular area of tiles using a brush (or erase if no brush is specified).
Refer to Brushes section of user guide for further information regarding brushes.
This action replicates functionality of PaintingUtility.PaintRectangle.
Remarks
When painting multiple tiles in sequence you should consider using the Begin Bulk Edit and End Bulk Edit actions to improve performance.
Input Variables
- Tile System Component : Rotorz.Tile.TileSystem
- Tile system of which to edit.
- Brush (Optional) : Rotorz.Tile.Brush
- The brush; a value of
null
indicates that tile should be erased.
- From Row Index : int
- Zero-based row of tile to start painting rectangle from.
- From Column Index : int
- Zero-based column of tile to start painting rectangle from.
- To Row Index : int
- Zero-based row of tile to finish painting rectangle at.
- To Column Index : int
- Zero-based column of tile to finish painting rectangle at.
- Outline Only : bool
- When
true
only an outline of tiles is painted; whenfalse
the entire rectangle is filled.
- Variation Index : int
- Zero-based index of desired tile variation. Specify -1 for randomization.
- Variation Shift Count : int
- Count of variations to shift by.
- Randomize Rotation : bool
- Indicates whether rotation should be randomized when painting tiles.
- Rotation : int
- Rotation of painted tiles.
- Paint Around Existing Tiles : bool
- Indicates whether new tiles should be painted around existing tiles rather than painting over them. This of course does not apply when erasing tiles.
- Fill Rate Percentage : int
- A value ranging between 0 and 100 (inclusive) which indicates the rate in which candidate tiles are filled. Specify a value lower than 100 to spray tiles onto a tile system.
Updated