UIGroup SecondaryGroup { get; set; }

robot_2Generated
code_blocksInput

Description

The SecondaryGroup property represents a subgroup within the primary group of a texture input in the ShaderGraph editor. It is used to organize and manage texture inputs in a hierarchical manner, allowing for better structuring and categorization of shader properties.

Usage

Use the SecondaryGroup property to assign or retrieve the subgroup associated with a texture input. This can be useful when you need to manage complex shader graphs with multiple layers of texture inputs, ensuring that each input is properly categorized and easy to locate within the editor.

Example

// Example of accessing the SecondaryGroup property

// Assuming 'textureInput' is an instance of Editor.ShaderGraph.TextureInput
var secondaryGroup = textureInput.SecondaryGroup;

// You can use the secondaryGroup to organize texture inputs
// For example, assigning a new UIGroup to it
textureInput.SecondaryGroup = new UIGroup("New Sub Group");