string Group { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Group property of the PrefabVariable class is an optional string that allows you to categorize or group the variable within a specific context. This can be useful for organizing variables in a meaningful way, especially when dealing with a large number of variables.

Usage

To use the Group property, simply assign a string value that represents the group name you want the variable to belong to. This is particularly useful in user interfaces where variables are displayed in grouped sections.

Example

// Example of setting the Group property
PrefabVariable myVariable = new PrefabVariable();
myVariable.Group = "PlayerSettings";

// This will categorize the variable under the "PlayerSettings" group.