Description
The GetSubtools
method is a virtual method of the Editor.EditorTool
class. It is designed to return a collection of sub-tools that the current tool wants to utilize. This method can be overridden in derived classes to provide specific sub-tools relevant to the tool's functionality.
Usage
To use the GetSubtools
method, you should call it on an instance of a class that derives from Editor.EditorTool
. The method will return an IEnumerable<Editor.EditorTool>
containing the sub-tools. If no sub-tools are needed, the method can return an empty collection.
Example
public class MyCustomTool : Editor.EditorTool
{
public override IEnumerable<Editor.EditorTool> GetSubtools()
{
// Return a list of sub-tools that this tool uses
return new List<Editor.EditorTool>
{
new SubTool1(),
new SubTool2()
};
}
}