The MapPathName
property of the MapWorld
class represents the file path or name of the map associated with this world. It is a string value that can be used to identify or locate the map file within the editor or file system.
The MapPathName
property of the MapWorld
class represents the file path or name of the map associated with this world. It is a string value that can be used to identify or locate the map file within the editor or file system.
To access or modify the MapPathName
property, you need to have an instance of the MapWorld
class. This property is publicly accessible and can be both read and written to, allowing you to retrieve the current map path or set a new one.
// Example of accessing and setting the MapPathName property // Assume 'mapWorld' is an instance of MapWorld MapWorld mapWorld = new MapWorld(); // Get the current map path name string currentMapPath = mapWorld.MapPathName; // Set a new map path name mapWorld.MapPathName = "new_map_path.vmap";