Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Undo.GetCurrentGroup

static function GetCurrentGroup(): int;
static int GetCurrentGroup();
static def GetCurrentGroup() as int

Description

Unity automatically groups undo operations by the current group index.

The current group index is automatically increased on mouse down, clicking on menu items and other operations.

See Also: Undo.RevertAllDownToGroup.