The FileExtension
property of the 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.
The FileExtension
property of the 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.
To access the primary file extension of an asset type, you can use the FileExtension
property on an instance of AssetType
. This property returns a string
representing the file extension, such as ".vmdl" for models or ".vmat" for materials.
// Example of accessing the FileExtension property Editor.AssetType modelAssetType = Editor.AssetType.Model; string modelFileExtension = modelAssetType.FileExtension; // Output: ".vmdl" string materialFileExtension = Editor.AssetType.Material.FileExtension; // Output: ".vmat"