API ReferenceSandbox
SceneMapclass
Map geometry that can be rendered within a `Sandbox.SceneWorld`.
object→SceneMap
Constructors1
Showing 1 constructors
public SceneMap(Sandbox.SceneWorld sceneWorld, string map)
Create a scene map within a scene world.
| Parameter | Type | Description |
|---|---|---|
| sceneWorld | SceneWorld | — |
| map | string | — |
No results match this filter.
Methods2
Showing 2 methods
public static System.Threading.Tasks.Task`1<Sandbox.SceneMap> CreateAsync(Sandbox.SceneWorld sceneWorld, string map, System.Threading.CancellationToken cancelToken = null)
Create scene map asynchronously for when large maps take time to load.
| Parameter | Type | Description |
|---|---|---|
| sceneWorld | SceneWorld | — |
| map | string | — |
| cancelToken = null | CancellationToken | — |
public void Delete()
Delete this scene map. You shouldn't access it anymore.
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public virtual sealed bool Sandbox.SceneMap.IsValid { get; set; }
Is the map valid.
Returns:
bool—public string Sandbox.SceneMap.MapFolder { get; set; }
maps/davej/cs_assault
Returns:
string—public string Sandbox.SceneMap.MapName { get; set; }
cs_assault
Returns:
string—public Sandbox.SceneWorld Sandbox.SceneMap.World { get; set; }
The scene world this map belongs to.
No results match this filter.