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, simply call it on an instance of the MapMesh
class. This method does not require any parameters and returns an IEnumerable<Editor.Asset>
containing the material assets.
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);
}