Rotorz Tile System Icon
Rotorz Tile System for Unity
API Reference
Available on the Unity Asset Store
TOC

PaintingArgs Structure

A selection of arguments which can be used to influence the way in which tiles are painted when using the PaintingUtility class.
public struct PaintingArgs
public struct PaintingArgs

Methods

GetDefaults()
Get default painting arguments.
GetDefaults(Brush)
Get default painting arguments.
ResolveVariation(Int32)
Resolve variation index by applying shift.

Fields

brush
Brush to use when painting tiles. Specify a value of null to erase tiles instead of painting them.
fillRatePercentage
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.
paintAroundExistingTiles
Indicates whether new tiles should be painted around existing tiles rather than painting over them. This of course does not apply when erasing tiles.
randomizeRotation
Indicates whether rotation should be randomized when painting tiles.
rotation
Rotation of painted tiles.
variation
Zero-based index of desired tile variation or a value of RANDOM_VARIATION to randomize tile variations when painting.
variationShiftCount
Count of variations to shift by.

See Also

Reference