The MapName
property of the MapInstance
class represents the name of the map that is currently loaded or intended to be loaded. This property is a string and is used to identify the map within the Sandbox environment.
The MapName
property of the MapInstance
class represents the name of the map that is currently loaded or intended to be loaded. This property is a string and is used to identify the map within the Sandbox environment.
To use the MapName
property, you can get or set the name of the map associated with a MapInstance
object. This is useful for dynamically loading different maps based on game logic or user input.
// Example of setting the MapName property MapInstance mapInstance = new MapInstance(); mapInstance.MapName = "my_custom_map"; // Example of getting the MapName property string currentMapName = mapInstance.MapName; // Use currentMapName for logic or display purposes