public static abstract sealed class Editor.MapEditor.Hammer
Related Guides
Broader workflow and conceptual references connected to this API.
Editor Events are events that are broadcast globally throughout the editor and can be listened to/fired from any Editor Project. These are useful for creating your own custom Editor Tools and making sure they can work in tandem with existing systems.
The s&box editor is your workspace for building games — scene editing, asset management, visual scripting, and more.
The HammerMesh component is added automatically to game objects in Hammer that are tied to a mesh.
Network Visibility controls whether a networked object should be visible for a specific player (Connection). Visibility determines whether the object receives ongoing network updates — such as Sync Vars and Transform updates — for that client.
As you play with developing in s&box, you will notice some things are weird, missing, or suck. We are aware.
Methods
Showing 6 methods
public static void AssignAssetToSelection(Editor.Asset asset)
Assigns the asset to the current selection.
public static void ReloadFromFile()
Reloads the active editor session from file with user prompt
public static void SelectFacesUsingMaterial(Editor.Asset asset)
Selects all faces using the asset, forces `Editor.MapEditor.Selection.SelectMode` to `Editor.MapEditor.SelectMode.Faces`
public static void SelectObjectsUsingAsset(Editor.Asset asset)
Selects all map nodes using the asset, appending them to the current selection.
public static void SetCurrentMaterial(Editor.Asset asset)
Sets the currently used material to the specified asset.
Note
I'd happily merge together this into a get setter, but it's a mix of a Material and an Asset
public static void ShowEntityReportForAsset(Editor.Asset asset)
Opens a Entity Report dialog showing all entities using this asset.
No results match this filter.
Properties
Showing 5 properties
public static Editor.MapDoc.MapDocument Editor.MapEditor.Hammer.ActiveMap { get; set; }
The active editor session's map document.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor.MapEditor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.MapEditor.Hammer |