AssetType MapFile { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The MapFile property represents a map asset type in the Sandbox editor. It is a static property of the Editor.AssetType class and is used to identify assets with the .vmap file extension, which are typically used for map files in the game development process.

Usage

Use the MapFile property when you need to reference or work with map assets within the Sandbox editor. This property is particularly useful when filtering or categorizing assets by type, or when performing operations specific to map files.

Example

// Example of using the MapFile property to find all map assets
var mapAssets = AssetType.All.Where(asset => asset == AssetType.MapFile);

foreach (var mapAsset in mapAssets)
{
    // Perform operations with each map asset
    Console.WriteLine(mapAsset.FriendlyName);
}