Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Undo.CollapseUndoOperations

public static void CollapseUndoOperations(int groupIndex);

Parameters

groupIndex The index to collapse up to.

Description

Collapses all undo operation up to group index together into one step.

This is used by the color picker to combine all color modifications into a single step once the color picker is closed, while they are seperate operations when the color picker is still open.