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

BrushOrientation Class

Describes one orientation of an oriented brush.
[SerializableAttribute]
public sealed class BrushOrientation
[SerializableAttribute]
public sealed class BrushOrientation

Methods

AddVariation(Object)
Add variation to orientation.
AddVariation(Object, Int32)
Add variation with custom weight to orientation.
GetGroupedOrientationMasks()
Gets orientation masks of grouped orientations. Resulting array always includes mask of this orientation.
GetVariation(Int32)
Get specific variation from orientation.
GetVariationWeight(Int32)
Gets weight of the specified variation.
IndexOfVariation(Object)
Find index of variation within orientation.
InsertVariation(Int32, Object)
Insert variation at specific position within orientation.
InsertVariation(Int32, Object, Int32)
Insert variation with custom weight at specific position within orientation.
PickRandomVariationIndex()
Pick random variation from orientation.
RemoveAllVariations()
Remove all variations from orientation.
RemoveVariation(Int32)
Remove specific variation from orientation.
SetVariation(Int32, Object)
Update specific veriation within orientation.
SetVariationWeight(Int32, Int32)
Set weight of the specified variation.
SyncVariationsFrom(BrushOrientation)
Synchronize variations from another orientation.

Fields

DefaultVariationWeight
Default randomization weighting to assume when creating new variations if no weight has been explicitly specified.

Properties

HasRotationalSymmetry
Gets a value indicating whether orientation is linked to other orientations with rotation symmetry.
Mask
Gets bitmask representation of orientation.
Rotation
Gets index of rotation of orientation.
VariationCount
Gets count of variations within orientation.

Remarks

Each orientation can reference one or more variations which can be used when painting tiles. Variations can be references to prefabs or nestable brushes.

Inheritance Hierarchy

System.Object
  Rotorz.Tile.BrushOrientation

See Also

Reference