API ReferenceEditor.MapEditor
Hammerclass
object→Hammer
Methods6
Showing 6 methods
public static void AssignAssetToSelection(Editor.Asset asset)
Assigns the asset to the current selection.
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
Returns:
void—public static void ReloadFromFile()
Reloads the active editor session from file with user prompt
Returns:
void—public static void SelectFacesUsingMaterial(Editor.Asset asset)
Selects all faces using the asset, forces `Editor.MapEditor.Selection.SelectMode` to `Editor.MapEditor.SelectMode.Faces`
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
Returns:
void—public static void SelectObjectsUsingAsset(Editor.Asset asset)
Selects all map nodes using the asset, appending them to the current selection.
| Parameter | Type | Description |
|---|---|---|
| asset | Asset | — |
Returns:
void—No results match this filter.
Properties5
Showing 5 properties
public static Editor.MapDoc.MapDocument Editor.MapEditor.Hammer.ActiveMap { get; set; }
The active editor session's map document.
public static Sandbox.Material Editor.MapEditor.Hammer.CurrentMaterial { get; set; }
Current Material - you can set this programmatically with `Editor.MapEditor.Hammer.SetCurrentMaterial(Editor.Asset)`
No results match this filter.