string GroupName { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The GroupName property of the InputAction class is used to specify a group name for the input action when it is displayed in a binding system. This can be useful for organizing input actions into categories or groups, making it easier to manage and understand the input configuration within a game project.

Usage

To use the GroupName property, simply assign a string value that represents the group name you want to associate with the input action. This value will be used in the binding system to categorize the input action.

Example

// Example of setting the GroupName property for an InputAction
InputAction jumpAction = new InputAction();
jumpAction.Name = "Jump";
jumpAction.KeyboardCode = "Space";
jumpAction.GroupName = "Movement"; // Assigning a group name

// This will categorize the 'Jump' action under the 'Movement' group in the binding system.