Description
The GroupName
property of the InputAction
class represents a group name for the input action when it is displayed in a binding system. This property is useful for organizing input actions into logical groups, making it easier to manage and display them in user interfaces.
Usage
To use the GroupName
property, you can set it to a string value that represents the group to which the input action belongs. This can be particularly useful when you have multiple input actions and want to categorize them for better organization and display in a UI.
Example
// Example of setting the GroupName property for an InputAction
InputAction jumpAction = new InputAction();
jumpAction.Name = "Jump";
jumpAction.GroupName = "Movement";
// This will categorize the 'Jump' action under the 'Movement' group in the binding system.