• Sets the functionality of the rectangular unit multi-select.

    "Drag Select" allows you to hold left-click to select multiple units by expanding the green selection rectangle over the units.

    Parameters

    • state: boolean

      If true, default game behavior (drag select is enabled).

      If false, drag select is disabled. Only the first unit in the rectangle will be selected (closest to the point where you first clicked the mouse).

      Note that you can still select multiple units with Shift+Click even if drag select is disabled.

    • ui: boolean

      If true, render the visual indicator that shows the green rectangular selection area (default). Units, that are not yet selected but are inside the rectangle, have a semi-transparent green circle around them.

      If false, the green rectangle is not rendered. This has no effect on state, Drag Select can still work without the visual indicator.

    Returns void

Generated using TypeDoc