class MAGES::MeshDeformations::Editor::CutActionVolumeSelectionOverlay

Overview

Overlay for the CutActionVolumeSelectionTool. Owns group management for the action’s cuts: add, remove, and select-which-group-to-edit. Copied and retargeted from VolumeConstraintsDestructionDetectorOverlay, with the add/remove footer enabled. More…

class CutActionVolumeSelectionOverlay: public Overlay
{
public:
    // properties

    int MaxVolumeDraw;

    // methods

    delegate void OnGroupSelectionChanged(int newGroupSelection);

    CutActionVolumeSelectionOverlay(
        TearActionData target,
        OnGroupSelectionChanged callback,
        int totalVolumeCount
    );

    void SelectGroup(int groupIndex);
    override VisualElement CreatePanelContent();
};

Detailed Documentation

Overlay for the CutActionVolumeSelectionTool. Owns group management for the action’s cuts: add, remove, and select-which-group-to-edit. Copied and retargeted from VolumeConstraintsDestructionDetectorOverlay, with the add/remove footer enabled.

Properties

int MaxVolumeDraw

The current “Max Volume Draw” value: the number of nearest-to-camera volumes the tool should draw and make interactable. Persisted across tool re-entry via EditorPrefs.

Methods

void SelectGroup(int groupIndex)

Selects the group at groupIndex in the overlay’s list, driving the active edit group.

Parameters:

groupIndex

The group index to select.