Description
The Value
property of the GroupAttribute
class represents the name or identifier of the group to which a type or type member belongs. This property is a string
and is used to categorize or group related members or types within the application. The grouping information can be accessed using the DisplayInfo library, which facilitates the organization and retrieval of metadata about types and members.
Usage
To use the Value
property, you need to apply the GroupAttribute
to a class, method, or property. The Value
property is typically set when the attribute is instantiated, specifying the group name or identifier.
Example
// Example of using GroupAttribute with the Value property
[Group("PlayerSettings")]
public class PlayerConfig
{
// Class members
}
[Group("UIElements")]
public class MainMenu
{
// Class members
}