ezEngine  Release 25.03
ezDocumentTypeDescriptor Struct Reference
Inheritance diagram for ezDocumentTypeDescriptor:

Public Attributes

ezString m_sFileExtension
 
ezString m_sDocumentTypeName
 
bool m_bCanCreate = true
 
ezString m_sIcon
 
const ezRTTIm_pDocumentType = nullptr
 
ezDocumentManagerm_pManager = nullptr
 
ezStringView m_sAssetCategory
 
ezHybridArray< ezString, 1 > m_CompatibleTypes
 

Member Data Documentation

◆ m_CompatibleTypes

ezHybridArray<ezString, 1> ezDocumentTypeDescriptor::m_CompatibleTypes

This list is used to decide which asset types can be picked from the asset browser for a property. The strings are arbitrary and don't need to be registered anywhere else. An asset may be compatible for multiple scenarios, e.g. a skinned mesh may also be used as a static mesh, but not the other way round. In such a case the skinned mesh is set to be compatible to both "CompatibleAsset_Mesh_Static" and "CompatibleAsset_Mesh_Skinned", but the non-skinned mesh only to "CompatibleAsset_Mesh_Static". A component then only needs to specify that it takes an "CompatibleAsset_Mesh_Static" as input, and all asset types that are compatible to that will be browseable.


The documentation for this struct was generated from the following file: