public static abstract sealed class Editor.EditorUtility.Mounting
Related Guides
Broader workflow and conceptual references connected to this API.
The mount system is extensible - anyone can write a mount to add support for a new game or engine and contribute it to s&box via pull request. A mount detects a game's install directory via Steam, scans its files, and converts assets into s&box compatible assets, all at runtime.
There is a large selection of Assets (Textures, Models, Sounds, ect) available to use on sbox.game, and you can use them without needing to think about downloading the files/mounting the content/ect.
Methods
Showing 3 methods
public static Sandbox.Mounting.BaseGameMount Get(string name)
Get the mount
public static System.Threading.Tasks.Task Refresh(string name)
Flush this source to force a refresh. Unmount and re-mount, updating and getting a list of all the new files. This is used during development to force an update of the files, so you don't have to restart the editor.
public static System.Threading.Tasks.Task SetMounted(string name, bool state)
Set a mount state. This state will be saved in the project, and your game will require it if you publish it.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.EditorUtility.Mounting |