IEnumerable<EditorTool> GetSubtools()

book_4_sparkGenerated
code_blocksInput

Description

The GetSubtools method is a virtual method in the BaseMeshTool class, which is part of the Editor.MeshEditor namespace. This method is designed to return an enumerable collection of subtools associated with the mesh editing tool. Subtools are typically additional tools or functionalities that extend the capabilities of the main tool.

Usage

To use the GetSubtools method, you need to have an instance of a class that derives from BaseMeshTool. You can then call this method to retrieve the subtools available for that specific mesh tool. This method is particularly useful when you want to iterate over or manage the subtools associated with a mesh editing operation.

Example

// Assuming 'meshTool' is an instance of a class derived from BaseMeshTool
IEnumerable<EditorTool> subtools = meshTool.GetSubtools();

foreach (var tool in subtools)
{
    // Perform operations with each subtool
    tool.Activate();
}