API Referenceglobal
Mountingclass
object→Mounting
Methods3
Showing 3 methods
public static Sandbox.Mounting.BaseGameMount Get(string name)
Get the mount
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
BaseGameMount—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.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
Returns:
Task—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.
| Parameter | Type | Description |
|---|---|---|
| name | string | — |
| state | bool | — |
Returns:
Task—No results match this filter.