AssetType MapFile { get; set; }

robot_2Generated
code_blocksInput

Description

The MapFile property represents a map asset type in the 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 environment.

Usage

Use the MapFile property when you need to reference or work with map assets within the 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 filter assets
var mapAssets = AssetType.All.Where(asset => asset == AssetType.MapFile);

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