# Sandbox.MapInstance

Allows you to load a map into the Scene. This can be either a vpk or a scene map.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Component](/api/Sandbox.Component)

## Constructors

- [`MapInstance`](/api/Sandbox.MapInstance/.ctor)

## Properties

- [`Bounds`](/api/Sandbox.MapInstance/Bounds): Get the world bounds of the map
- [`ComponentVersion`](/api/Sandbox.MapInstance/ComponentVersion)
- [`EnableCollision`](/api/Sandbox.MapInstance/EnableCollision)
- [`IsLoaded`](/api/Sandbox.MapInstance/IsLoaded): True if the map is loaded
- [`MapName`](/api/Sandbox.MapInstance/MapName)
- [`NoOrigin`](/api/Sandbox.MapInstance/NoOrigin)
- [`OnMapLoaded`](/api/Sandbox.MapInstance/OnMapLoaded): Called when the map has successfully loaded
- [`OnMapUnloaded`](/api/Sandbox.MapInstance/OnMapUnloaded): Called when the map has been unloaded
- [`UseMapFromLaunch`](/api/Sandbox.MapInstance/UseMapFromLaunch)

## Methods

- [`UnloadMap`](/api/Sandbox.MapInstance/UnloadMap): Unload the current map.
