Description
The Value
property of the GroupAttribute
class is a string
that represents the name or identifier of the group to which a type or type member belongs. This property is used to categorize or group related members, which can be useful for organizing code and improving readability.
Usage
To use the Value
property, you must first apply the GroupAttribute
to a class, method, or property. The Value
property can then be set to a string that represents the desired group name. This grouping information can be accessed through the DisplayInfo library, which can be used to retrieve and display the group information at runtime.
Example
// Example of using GroupAttribute with the Value property
[Group("Gameplay Mechanics")]
public class PlayerController : Component
{
// Class implementation
}
[Group("UI Elements")]
public class MainMenu : Component
{
// Class implementation
}