public static abstract sealed class Sandbox.Mounting.Directory
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.
You can find information about how to install and use SteamCMD here <https://developer.valvesoftware.com/wiki/SteamCMD> to install the s&box Dedicated Server.
Standard .NET file access is restricted to prevent rogue access to your files, this means you can not use System.IO.File or variants directly.
Game Mounts let users play with assets from other games they have installed inside s&box. Models, textures, materials, and sounds are converted on-the-fly - no manual importing or file conversion required.
Errors will happen. Here's how to make a useful error report.
A [scene]() is a collection of [GameObjects].
Methods
Showing 3 methods
public static Sandbox.Mounting.BaseGameMount Get(string name)
Get a specific mount by name
public static System.Threading.Tasks.Task`1<Sandbox.Mounting.BaseGameMount> Mount(string name)
Mount this game if we can. Returns null if it can't be mounted, or the mount object if it can. If we're already mounted, will just return the mount straight away.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Mounting |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Mounting.Directory |