Class ToolBrushGroups
Namespace: ValveResourceFormat.Renderer.Editor
Assembly: Renderer.dll
The groups Hammer's Auto Vis Groups sort tools materials into under "Tool Brushes". CS2 declares them with the toolsMaterial filters of its FGD files, which hold the groups older Hammer builds have built in. A group holds only the materials named for it, so a group below a hidden one can still be shown. The root group holds the tools materials no group names. Hammer files the clips of each surface together under Clip. Here each clip material has a group of its own.
public static class ToolBrushGroupsInheritance
object ← ToolBrushGroups
Fields
RootGroup
The group every other group is below, which holds the tools materials no group names.
public const string RootGroup = "Tool Brushes"Field Value
string
Properties
HiddenByDefault
The groups that start hidden.
public static IReadOnlyList<string> HiddenByDefault { get; }Property Value
IReadOnlyList<string>
Methods
GetEntityClass(SceneNode)
Gets the class of the entity a node draws the brushes of.
public static string GetEntityClass(SceneNode node)Parameters
node SceneNode
The node.
Returns
string
The class, worldspawn for brushes of no entity.
GetGroup(string)
Gets the group a material is in.
public static string? GetGroup(string materialName)Parameters
materialName string
The path of the material, such as materials/tools/toolsclip.vmat.
Returns
string?
The group, or null for a material no group holds.
GetGroupAndParents(string)
Gets a group and its parent groups, outermost last.
public static IEnumerable<string> GetGroupAndParents(string group)Parameters
group string
The group, such as Tool Brushes/Clip/Player Clip.
Returns
IEnumerable<string>

