AssetType Material { get; set; }

robot_2Generated
code_blocksInput

Description

The Material property represents the asset type for materials, specifically files with the .vmat extension. This property is part of the Editor.AssetType class and is used to identify and work with material assets within the editor environment.

Usage

Use the Material property to access the material asset type when you need to perform operations related to materials, such as loading, editing, or categorizing material files in the editor. This property is static and can be accessed directly from the Editor.AssetType class.

Example

// Example of accessing the Material asset type
Editor.AssetType materialType = Editor.AssetType.Material;

// Use the materialType to find assets of this type
var materialAssets = Editor.AssetType.Find("MyMaterial", true);

// Check if the asset type is a simple asset
bool isSimple = materialType.IsSimpleAsset;

// Get the primary file extension for the material asset type
string fileExtension = materialType.FileExtension;