The Name
property of the UIGroup
struct in the Editor.ShaderGraph
namespace represents the name of the group. This property is used to identify the group within the shader graph editor interface.
The Name
property of the UIGroup
struct in the Editor.ShaderGraph
namespace represents the name of the group. This property is used to identify the group within the shader graph editor interface.
To access or modify the name of a UIGroup
, use the Name
property. This property is a string
and can be both read and set.
// Example of using the Name property // Create a new UIGroup instance Editor.ShaderGraph.UIGroup myGroup = new Editor.ShaderGraph.UIGroup(); // Set the name of the group myGroup.Name = "Main Effects"; // Retrieve the name of the group string groupName = myGroup.Name; // Output the name of the group // Note: Avoid using Console.WriteLine in Sandbox // Instead, use appropriate logging or UI display methods // Log.Info($"Group Name: {groupName}");