IEnumerable<Asset> GetFaceMaterialAssets()

robot_2Generated
code_blocksInput

Description

The GetFaceMaterialAssets method retrieves all material assets that are used on the faces of the mesh within the MapMesh class. This method is useful for obtaining a collection of materials applied to the mesh, which can be used for further processing or analysis.

Usage

To use the GetFaceMaterialAssets method, you need to have an instance of the MapMesh class. Once you have the instance, you can call this method to get an enumerable collection of Editor.Asset objects, each representing a material asset used on the mesh.

Example

// Assuming 'mapMesh' is an instance of Editor.MapDoc.MapMesh
IEnumerable<Editor.Asset> materialAssets = mapMesh.GetFaceMaterialAssets();

foreach (var asset in materialAssets)
{
    // Process each material asset
    // For example, print the asset name
    Console.WriteLine(asset.Name);
}