Vixen
02b45cc4
csharp
public sealed class TerrainPaintCommand

One paint stroke as one entry in the undo history.

Read the guide page for this →

Remarks

The sibling of TerrainStrokeCommand, over a different record. A sculpt stroke holds one layer's deltas; a paint stroke holds every layer's weights, because painting one lowers the rest proportionally — see TerrainWeightStroke.

⚠ Merging is off, for [§ D11]'s reason. Two strokes are two undos. What merges is inside the stroke: a drag is one record being extended, so by the time one of these exists the merging has already happened.

Fields and properties (4)

  • public string Name

    What this is called in the undo history, as a person would say it.

  • public TerrainRect Rect

    Which samples the stroke touched.

  • public int RecordedSamples

    How many samples the record holds.

  • public long Bytes

    How many bytes it occupies.

Methods (4)

Used by (2)

  • TerrainEditVixen.Editor.Terrain
  • TerrainPaintModeTestsVixen.Editor.Terrain.Tests