csharp
public sealed class TerrainHoleCommandOne hole stroke as one entry in the undo history.
Remarks
⚠ The collider is rebuilt for a hole stroke even though no height moved. A hole removes the quads that reference it from the collision shape as well as from the index buffer — [§ The sculpt tools] — so a cave mouth that was punched and not re-collided is a hole the player can see through and still stands on.
Fields and properties (2)
public string NameWhat this is called in the undo history, as a person would say it.
public TerrainRect RectWhich samples the stroke touched.
Methods (3)
public TerrainHoleCommand(Terrain terrain, TerrainHoleStroke stroke, string name, Action<TerrainRect>? changed = null)Records an applied hole stroke.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
Used by (2)
- TerrainEditVixen.Editor.Terrain
- TerrainEditTestsVixen.Editor.Terrain.Tests