Class ToolsVisibility
Namespace: ValveResourceFormat.Renderer.Editor
Assembly: Renderer.dll
Which tools-only content is drawn: entities that only exist in the editor, and tools materials such as triggers and clips.
public sealed class ToolsVisibilityInheritance
object ← ToolsVisibility
Properties
IsPlaying
Gets or sets whether the world is being played, which hides the entities that only exist in the editor so it looks as the player sees it.
public bool IsPlaying { get; set; }Property Value
bool
ShowToolEntities
Gets or sets whether entities that only exist in the editor are drawn, while the world is not played.
public bool ShowToolEntities { get; set; }Property Value
bool
ShowToolMaterials
Gets or sets whether tools materials are drawn, while the editor-only entities are. Off until asked for.
public bool ShowToolMaterials { get; set; }Property Value
bool
ToolEntitiesVisible
Gets whether editor-only entities end up drawn.
public bool ToolEntitiesVisible { get; }Property Value
bool
ToolMaterialsVisible
Gets whether tools materials end up drawn. Hiding the editor-only entities hides them too.
public bool ToolMaterialsVisible { get; }Property Value
bool
Methods
FilterLayers(IEnumerable<string>)
The layers to enable out of those chosen, without the editor-only ones while they are hidden.
public HashSet<string> FilterLayers(IEnumerable<string> chosenLayers)Parameters
chosenLayers IEnumerable<string>
The layers chosen to be shown.
Returns
HashSet<string>
IsPhysicsVisible(PhysSceneNode, bool)
Gets whether collision shapes end up drawn, given whether their group was chosen to be shown. Tools materials only survive compilation as collision, so these are what the tools materials switch hides.
public bool IsPhysicsVisible(PhysSceneNode node, bool groupChosen)Parameters
node PhysSceneNode
The collision shapes.
groupChosen bool
Whether the group of the shapes was chosen to be shown.
Returns
bool
IsToolEntityLayer(string)
Gets whether a layer only holds editor-only entities.
public static bool IsToolEntityLayer(string layerName)Parameters
layerName string
The layer.
Returns
bool

