Description
The Map
property of the LaunchArguments
class specifies the initial map to load when the game starts. This property is a static string, meaning it can be accessed without instantiating the LaunchArguments
class. The actual use of this property is determined by the game implementation, as it provides a way to pre-configure the game environment based on launch parameters.
Usage
To use the Map
property, simply access it directly from the LaunchArguments
class. This property is typically set during the game's launch process, often through command-line arguments or a configuration file.
Example
// Example of accessing the Map property
string initialMap = LaunchArguments.Map;
// Use the initialMap variable to load the specified map
if (!string.IsNullOrEmpty(initialMap))
{
// Load the map using the game's map loading functionality
Game.LoadMap(initialMap);
}