Api Sandbox MapInstance
class

MapInstance

public class MapInstance : Component

Allows you to load a map into the Scene. This can be either a vpk or a scene map.

Constructors

MapInstance()

Properties

Name Type Description
MapName String
UseMapFromLaunch Boolean
EnableCollision Boolean
IsLoaded Boolean True if the map is loaded
OnMapLoaded Action Called when the map has successfully loaded
OnMapUnloaded Action Called when the map has been unloaded
Bounds BBox Get the world bounds of the map
NoOrigin Boolean
ComponentVersion virtual Int32

Methods

Void UnloadMap()

Unload the current map.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.MapInstance