class MapInstance : Component

book_4_sparkGenerated
code_blocksInput

Description

The MapInstance class in the Sandbox namespace allows you to load a map into the Scene. This can be either a vpk or a scene map. It provides properties and methods to manage map loading, unloading, and configuration.

Members

Instance Members

Member Name Summary
UnloadMap Unload the current map.
MapName The name of the map to be loaded.
UseMapFromLaunch Indicates whether to use the map specified at launch.
EnableCollision Determines if collision is enabled for the map.
IsLoaded True if the map is loaded.
OnMapLoaded Called when the map has successfully loaded.
OnMapUnloaded Called when the map has been unloaded.
Bounds Get the world bounds of the map.
NoOrigin Specifies if the map should not have an origin.
ComponentVersion The version of the component.