string FileExtension { get; set; }

robot_2Generated
code_blocksInput

Description

The FileExtension property of the Editor.AssetType class provides the primary file extension associated with a specific asset type. This property is useful for identifying the default file format used by the asset type within the editor environment.

Usage

To access the primary file extension of an asset type, you can use the FileExtension property on an instance of Editor.AssetType. This property returns a string representing the file extension, such as ".vmdl" for models or ".vmat" for materials.

Example

// Example of accessing the FileExtension property
Editor.AssetType modelAssetType = Editor.AssetType.Model;
string modelFileExtension = modelAssetType.FileExtension;

// Output the file extension
// modelFileExtension would be ".vmdl" for the Model asset type