csharp
public sealed class FoliageMoveCommandMoving selected instances, as one entry.
Remarks
⚠ A move can re-cell, so the addresses change and the command hands the new ones back. A gizmo still holding the old ones would move a different tree on the next drag — which is the failure that looks like the gizmo drifting.
Fields and properties (2)
public string NameWhat this is called in the undo history, as a person would say it.
public int CountHow many instances moved.
Methods (3)
public FoliageMoveCommand(FoliageVolume volume, FoliageAddress[] addresses, FoliageInstance[] before, Vector3 offset, Action<IReadOnlyList<FoliageAddress>>? rebound = null)Records a move that has not been applied yet.
public void Do(EditorContext context)Applies the change.
public void Undo(EditorContext context)Puts back exactly what Do changed.
Used by (1)
- FoliageEditVixen.Editor.Terrain